X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcontext.h;h=24cfc6861a586b4a5eb7226062e88fba57277d48;hb=12a091b625c28d94e895901c900f4fdbd0776f7f;hp=ecf08a0adb84bb010e7e4307bd97a67195670554;hpb=ec9d4d9a12991ce69b71fd48c9f88c272073ab80;p=citadel.git diff --git a/citadel/context.h b/citadel/context.h index ecf08a0ad..24cfc6861 100644 --- a/citadel/context.h +++ b/citadel/context.h @@ -43,6 +43,7 @@ struct CitContext { unsigned cs_flags; /* miscellaneous flags */ void (*h_command_function) (void) ; /* service command function */ void (*h_async_function) (void) ; /* do async msgs function */ + void (*h_greeting_function) (void) ; /* greeting function for session startup */ int is_async; /* Nonzero if client accepts async msgs */ int async_waiting; /* Nonzero if there are async msgs waiting */ int input_waiting; /* Nonzero if there is client input waiting */ @@ -125,6 +126,7 @@ typedef struct CitContext CitContext; */ enum { CON_IDLE, /* This context is doing nothing */ + CON_STARTING, /* This context needs the greeting outputting */ CON_READY, /* This context needs attention */ CON_EXECUTING /* This context is bound to a thread */ };