00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00047 #ifndef PANTHEIOS_INCL_PANTHEIOS_BACKENDS_H_BEC_WINDOWSSYSLOG
00048 #define PANTHEIOS_INCL_PANTHEIOS_BACKENDS_H_BEC_WINDOWSSYSLOG
00049
00050
00051
00052
00053
00054 #ifndef PANTHEIOS_DOCUMENTATION_SKIP_SECTION
00055 # define PANTHEIOS_VER_PANTHEIOS_BACKENDS_H_BEC_WINDOWSSYSLOG_MAJOR 4
00056 # define PANTHEIOS_VER_PANTHEIOS_BACKENDS_H_BEC_WINDOWSSYSLOG_MINOR 1
00057 # define PANTHEIOS_VER_PANTHEIOS_BACKENDS_H_BEC_WINDOWSSYSLOG_REVISION 2
00058 # define PANTHEIOS_VER_PANTHEIOS_BACKENDS_H_BEC_WINDOWSSYSLOG_EDIT 22
00059 #endif
00060
00061
00062
00063
00064
00065 #ifndef PANTHEIOS_INCL_PANTHEIOS_H_PANTHEIOS
00066 # include <pantheios/pantheios.h>
00067 #endif
00068 #ifndef PANTHEIOS_INCL_PANTHEIOS_H_BACKEND
00069 # include <pantheios/backend.h>
00070 #endif
00071
00072
00073
00074
00075
00082
00083
00084
00085
00097 #define PANTHEIOS_BE_WINDOWSSYSLOG_F_USE_SYSTEM_TIME PANTHEIOS_BE_INIT_F_USE_SYSTEM_TIME
00098
00099
00110 #define PANTHEIOS_BE_WINDOWSSYSLOG_F_PERROR (0x00100000)
00111
00122 #define PANTHEIOS_BE_WINDOWSSYSLOG_F_CONS (0x00200000)
00123
00133 #define PANTHEIOS_BE_WINDOWSSYSLOG_F_PID (0x00400000)
00134
00145 #define PANTHEIOS_BE_WINDOWSSYSLOG_F_NDELAY (0x00800000)
00146
00147
00148
00159 #ifdef LOG_KERN
00160 # define PANTHEIOS_SYSLOG_FAC_KERN LOG_KERN
00161 #else
00162 # define PANTHEIOS_SYSLOG_FAC_KERN (0)
00163 #endif
00164
00170 #ifdef LOG_USER
00171 # define PANTHEIOS_SYSLOG_FAC_USER LOG_USER
00172 #else
00173 # define PANTHEIOS_SYSLOG_FAC_USER (1)
00174 #endif
00175
00181 #ifdef LOG_MAIL
00182 # define PANTHEIOS_SYSLOG_FAC_MAIL LOG_MAIL
00183 #else
00184 # define PANTHEIOS_SYSLOG_FAC_MAIL (2)
00185 #endif
00186
00192 #ifdef LOG_DAEMON
00193 # define PANTHEIOS_SYSLOG_FAC_DAEMON LOG_DAEMON
00194 #else
00195 # define PANTHEIOS_SYSLOG_FAC_DAEMON (3)
00196 #endif
00197
00203 #ifdef LOG_AUTH
00204 # define PANTHEIOS_SYSLOG_FAC_AUTH LOG_AUTH
00205 #else
00206 # define PANTHEIOS_SYSLOG_FAC_AUTH (4)
00207 #endif
00208
00214 #ifdef LOG_SYSLOG
00215 # define PANTHEIOS_SYSLOG_FAC_SYSLOG LOG_SYSLOG
00216 #else
00217 # define PANTHEIOS_SYSLOG_FAC_SYSLOG (5)
00218 #endif
00219
00225 #ifdef LOG_LPR
00226 # define PANTHEIOS_SYSLOG_FAC_LPR LOG_LPR
00227 #else
00228 # define PANTHEIOS_SYSLOG_FAC_LPR (6)
00229 #endif
00230
00236 #ifdef LOG_NEWS
00237 # define PANTHEIOS_SYSLOG_FAC_NEWS LOG_NEWS
00238 #else
00239 # define PANTHEIOS_SYSLOG_FAC_NEWS (7)
00240 #endif
00241
00247 #ifdef LOG_UUCP
00248 # define PANTHEIOS_SYSLOG_FAC_UUCP LOG_UUCP
00249 #else
00250 # define PANTHEIOS_SYSLOG_FAC_UUCP (8)
00251 #endif
00252
00258 #ifdef LOG_CRON
00259 # define PANTHEIOS_SYSLOG_FAC_CRON LOG_CRON
00260 #else
00261 # define PANTHEIOS_SYSLOG_FAC_CRON (9)
00262 #endif
00263
00269 #ifdef LOG_AUTHPRIV
00270 # define PANTHEIOS_SYSLOG_FAC_AUTHPRIV LOG_AUTHPRIV
00271 #else
00272 # define PANTHEIOS_SYSLOG_FAC_AUTHPRIV (10)
00273 #endif
00274
00280 #ifdef LOG_FTP
00281 # define PANTHEIOS_SYSLOG_FAC_FTP LOG_FTP
00282 #else
00283 # define PANTHEIOS_SYSLOG_FAC_FTP (11)
00284 #endif
00285
00291 #ifdef LOG_NETINFO
00292 # define PANTHEIOS_SYSLOG_FAC_NETINFO LOG_NETINFO
00293 #else
00294 # define PANTHEIOS_SYSLOG_FAC_NETINFO (12)
00295 #endif
00296
00302 #ifdef LOG_REMOTEAUTH
00303 # define PANTHEIOS_SYSLOG_FAC_REMOTEAUTH LOG_REMOTEAUTH
00304 #else
00305 # define PANTHEIOS_SYSLOG_FAC_REMOTEAUTH (13)
00306 #endif
00307
00313 #ifdef LOG_INSTALL
00314 # define PANTHEIOS_SYSLOG_FAC_INSTALL LOG_INSTALL
00315 #else
00316 # define PANTHEIOS_SYSLOG_FAC_INSTALL (14)
00317 #endif
00318
00324 #ifdef LOG_RAS
00325 # define PANTHEIOS_SYSLOG_FAC_RAS LOG_RAS
00326 #else
00327 # define PANTHEIOS_SYSLOG_FAC_RAS (15)
00328 #endif
00329
00335 #ifdef LOG_LOCAL0
00336 # define PANTHEIOS_SYSLOG_FAC_LOCAL0 LOG_LOCAL0
00337 #else
00338 # define PANTHEIOS_SYSLOG_FAC_LOCAL0 (16)
00339 #endif
00340
00346 #ifdef LOG_LOCAL1
00347 # define PANTHEIOS_SYSLOG_FAC_LOCAL1 LOG_LOCAL1
00348 #else
00349 # define PANTHEIOS_SYSLOG_FAC_LOCAL1 (17)
00350 #endif
00351
00357 #ifdef LOG_LOCAL2
00358 # define PANTHEIOS_SYSLOG_FAC_LOCAL2 LOG_LOCAL2
00359 #else
00360 # define PANTHEIOS_SYSLOG_FAC_LOCAL2 (18)
00361 #endif
00362
00368 #ifdef LOG_LOCAL3
00369 # define PANTHEIOS_SYSLOG_FAC_LOCAL3 LOG_LOCAL3
00370 #else
00371 # define PANTHEIOS_SYSLOG_FAC_LOCAL3 (19)
00372 #endif
00373
00379 #ifdef LOG_LOCAL4
00380 # define PANTHEIOS_SYSLOG_FAC_LOCAL4 LOG_LOCAL4
00381 #else
00382 # define PANTHEIOS_SYSLOG_FAC_LOCAL4 (20)
00383 #endif
00384
00390 #ifdef LOG_LOCAL5
00391 # define PANTHEIOS_SYSLOG_FAC_LOCAL5 LOG_LOCAL5
00392 #else
00393 # define PANTHEIOS_SYSLOG_FAC_LOCAL5 (21)
00394 #endif
00395
00401 #ifdef LOG_LOCAL6
00402 # define PANTHEIOS_SYSLOG_FAC_LOCAL6 LOG_LOCAL6
00403 #else
00404 # define PANTHEIOS_SYSLOG_FAC_LOCAL6 (22)
00405 #endif
00406
00412 #ifdef LOG_LOCAL7
00413 # define PANTHEIOS_SYSLOG_FAC_LOCAL7 LOG_LOCAL7
00414 #else
00415 # define PANTHEIOS_SYSLOG_FAC_LOCAL7 (23)
00416 #endif
00417
00423 #ifdef LOG_LAUNCHD
00424 # define PANTHEIOS_SYSLOG_FAC_LAUNCHD LOG_LAUNCHD
00425 #else
00426 # define PANTHEIOS_SYSLOG_FAC_LAUNCHD (24)
00427 #endif
00428
00429
00430
00431
00432
00437 struct pan_be_WindowsSyslog_init_t
00438 {
00439 #if !defined(PANTHEIOS_DOCUMENTATION_SKIP_SECTION) && \
00440 !defined(PANTHEIOS_NO_NAMESPACE)
00441 typedef pantheios::pan_uint8_t pan_uint8_t;
00442 typedef pantheios::pan_uint16_t pan_uint16_t;
00443 typedef pantheios::pan_uint32_t pan_uint32_t;
00444 #endif
00445
00446 pan_uint32_t version;
00447 pan_uint32_t flags;
00448 size_t addrSize;
00449 pan_uint8_t bytes[16];
00450 char const* hostName;
00451 pan_uint16_t port;
00452 pan_uint8_t facility;
00453 char hostNameBuff[101];
00455 #ifdef __cplusplus
00456 public:
00457 # ifndef PANTHEIOS_BE_INIT_NO_CPP_STRUCT_INIT
00458 pan_be_WindowsSyslog_init_t();
00459 # endif
00460 #endif
00461 };
00462 #if !defined(__cplusplus)
00463 typedef struct pan_be_WindowsSyslog_init_t pan_be_WindowsSyslog_init_t;
00464 #endif
00465
00466
00467
00468
00469
00470
00480 PANTHEIOS_CALL(void) pantheios_be_WindowsSyslog_getAppInit(
00481 int backEndId
00482 , pan_be_WindowsSyslog_init_t* init
00483 ) ;
00484
00485
00486
00487
00488
00501 PANTHEIOS_CALL(void) pantheios_be_WindowsSyslog_getDefaultAppInit(
00502 pan_be_WindowsSyslog_init_t* init
00503 ) ;
00504
00517 PANTHEIOS_CALL(int) pantheios_be_WindowsSyslog_init(
00518 PAN_CHAR_T const* processIdentity
00519 , int id
00520 , pan_be_WindowsSyslog_init_t const* init
00521 , void* reserved
00522 , void** ptoken
00523 );
00524
00528 PANTHEIOS_CALL(void) pantheios_be_WindowsSyslog_uninit(
00529 void* token
00530 );
00531
00535 PANTHEIOS_CALL(int) pantheios_be_WindowsSyslog_logEntry(
00536 void* feToken
00537 , void* beToken
00538 , int severity
00539 , PAN_CHAR_T const* entry
00540 , size_t cchEntry
00541 );
00542
00573 PANTHEIOS_CALL(int) pantheios_be_WindowsSyslog_parseArgs(
00574 size_t numArgs
00575 #ifdef PANTHEIOS_NO_NAMESPACE
00576 , struct pan_slice_t* const args
00577 #else
00578 , pantheios::pan_slice_t* const args
00579 #endif
00580 , pan_be_WindowsSyslog_init_t* init
00581 );
00582
00583
00584
00585 #ifdef __cplusplus
00586 # ifndef PANTHEIOS_BE_INIT_NO_CPP_STRUCT_INIT
00587 inline pan_be_WindowsSyslog_init_t::pan_be_WindowsSyslog_init_t()
00588 {
00589 pantheios_be_WindowsSyslog_getDefaultAppInit(this);
00590 }
00591 # endif
00592 #endif
00593
00594
00595
00596 #endif
00597
00598