src/core_binds.h File Reference

Go to the source code of this file.

Defines

#define BTN_CORE_INIT   "init"
#define BTN_CORE_SHUTDOWN   "shutdown"
#define BTN_CORE_TIME   "time"
#define BTN_CORE_SECONDLY   "secondly"
#define BTN_CORE_STATUS   "status"

Functions

int core_binds_init (void)
int core_binds_shutdown (void)
void check_bind_time (struct tm *tm)
void check_bind_init (void)
void check_bind_shutdown (void)
void check_bind_secondly ()
void check_bind_status (partymember_t *p, const char *text)


Define Documentation

#define BTN_CORE_INIT   "init"

Definition at line 26 of file core_binds.h.

Referenced by core_binds_init().

#define BTN_CORE_SECONDLY   "secondly"

Definition at line 29 of file core_binds.h.

Referenced by core_binds_init().

#define BTN_CORE_SHUTDOWN   "shutdown"

Definition at line 27 of file core_binds.h.

Referenced by core_binds_init().

#define BTN_CORE_STATUS   "status"

Definition at line 30 of file core_binds.h.

Referenced by core_binds_init().

#define BTN_CORE_TIME   "time"

Definition at line 28 of file core_binds.h.

Referenced by core_binds_init().


Function Documentation

void check_bind_init ( void   ) 

Definition at line 129 of file core_binds.c.

References bind_check(), egg_assert, and NULL.

Referenced by core_init().

00130 {
00131   egg_assert(BT_init != NULL);
00132 
00133   bind_check (BT_init, NULL, NULL);
00134 }

void check_bind_secondly (  ) 

Definition at line 151 of file core_binds.c.

References bind_check(), and NULL.

Referenced by core_secondly().

00152 {
00153   bind_check(BT_secondly, NULL, NULL);
00154 }

void check_bind_shutdown ( void   ) 

Definition at line 136 of file core_binds.c.

References bind_check(), egg_assert, and NULL.

Referenced by core_shutdown_or_restart().

00137 {
00138   egg_assert(BT_shutdown != NULL);
00139 
00140   bind_check (BT_shutdown, NULL, NULL);
00141 }

void check_bind_status ( partymember_t p,
const char *  text 
)

Definition at line 156 of file core_binds.c.

References bind_check(), and NULL.

Referenced by party_status().

00157 {
00158   bind_check(BT_status, NULL, NULL, p, text);
00159 }

void check_bind_time ( struct tm *  tm  ) 

Definition at line 143 of file core_binds.c.

References bind_check(), and NULL.

Referenced by core_secondly().

00144 {
00145   char full[32];
00146 
00147   sprintf(full, "%02d %02d %02d %02d %04d", tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon + 1, tm->tm_year + 1900);
00148   bind_check(BT_time, NULL, full, tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon + 1, tm->tm_year + 1900);
00149 }

int core_binds_init ( void   ) 

int core_binds_shutdown ( void   ) 

Definition at line 118 of file core_binds.c.

References bind_table_del().

Referenced by core_shutdown_or_restart().

00119 {
00120   bind_table_del(BT_status);
00121   bind_table_del(BT_secondly);
00122   bind_table_del(BT_time);
00123   bind_table_del(BT_shutdown);
00124   bind_table_del(BT_init);
00125 
00126   return (0);
00127 }


Generated on Sun Nov 30 18:43:36 2008 for eggdrop1.9 by  doxygen 1.5.6