syslog-ng source
apphook.h File Reference
#include "syslog-ng.h"
Include dependency graph for apphook.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* ApplicationHookFunc) (gint type, gpointer user_data)
 
typedef void(* ApplicationThreadHookFunc) (gpointer user_data)
 

Enumerations

enum  {
  AH_STARTUP , AH_POST_DAEMONIZED , AH_RUNNING , AH_PRE_SHUTDOWN ,
  AH_SHUTDOWN , __AH_STATE_MAX , AH_CONFIG_PRE_PRE_INIT , AH_CONFIG_PRE_INIT ,
  AH_CONFIG_STOPPED , AH_CONFIG_CHANGED , AH_REOPEN_FILES
}
 
enum  ApplicationHookRunMode { AHM_RUN_ONCE , AHM_RUN_REPEAT }
 

Functions

void app_startup (void)
 
void app_post_daemonized (void)
 
void app_running (void)
 
void app_pre_shutdown (void)
 
void app_shutdown (void)
 
void app_config_pre_pre_init (void)
 
void app_config_pre_init (void)
 
void app_config_stopped (void)
 
void app_config_changed (void)
 
void app_reopen_files (void)
 
gboolean app_is_starting_up (void)
 
gboolean app_is_shutting_down (void)
 
void register_application_hook (gint type, ApplicationHookFunc func, gpointer user_data, ApplicationHookRunMode run_mode)
 
void register_application_thread_init_hook (ApplicationThreadHookFunc func, gpointer user_data)
 
void register_application_thread_deinit_hook (ApplicationThreadHookFunc func, gpointer user_data)
 
void app_thread_start (void)
 
void app_thread_stop (void)
 

Typedef Documentation

◆ ApplicationHookFunc

typedef void(* ApplicationHookFunc) (gint type, gpointer user_data)

◆ ApplicationThreadHookFunc

typedef void(* ApplicationThreadHookFunc) (gpointer user_data)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AH_STARTUP 
AH_POST_DAEMONIZED 
AH_RUNNING 
AH_PRE_SHUTDOWN 
AH_SHUTDOWN 
__AH_STATE_MAX 
AH_CONFIG_PRE_PRE_INIT 
AH_CONFIG_PRE_INIT 
AH_CONFIG_STOPPED 
AH_CONFIG_CHANGED 
AH_REOPEN_FILES 

◆ ApplicationHookRunMode

Enumerator
AHM_RUN_ONCE 
AHM_RUN_REPEAT 

Function Documentation

◆ app_config_changed()

void app_config_changed ( void  )

◆ app_config_pre_init()

void app_config_pre_init ( void  )

◆ app_config_pre_pre_init()

void app_config_pre_pre_init ( void  )

◆ app_config_stopped()

void app_config_stopped ( void  )

◆ app_is_shutting_down()

gboolean app_is_shutting_down ( void  )

◆ app_is_starting_up()

gboolean app_is_starting_up ( void  )

◆ app_post_daemonized()

void app_post_daemonized ( void  )

◆ app_pre_shutdown()

void app_pre_shutdown ( void  )

◆ app_reopen_files()

void app_reopen_files ( void  )

◆ app_running()

void app_running ( void  )

◆ app_shutdown()

void app_shutdown ( void  )

◆ app_startup()

void app_startup ( void  )

◆ app_thread_start()

void app_thread_start ( void  )

◆ app_thread_stop()

void app_thread_stop ( void  )

◆ register_application_hook()

void register_application_hook ( gint  type,
ApplicationHookFunc  func,
gpointer  user_data,
ApplicationHookRunMode  run_mode 
)

◆ register_application_thread_deinit_hook()

void register_application_thread_deinit_hook ( ApplicationThreadHookFunc  func,
gpointer  user_data 
)

◆ register_application_thread_init_hook()

void register_application_thread_init_hook ( ApplicationThreadHookFunc  func,
gpointer  user_data 
)