NSHARE::CConfig split_info::MSerialize() const { NSHARE::CConfig _conf(NAME); _conf.MSet(TYPE, FType.MGetMask()); _conf.MSet(SIZE, FMaxSize); return _conf; }
int logt_init(const char *name, int mode, int syslog_facility, int syslog_priority, int logfile_priority, const char *logfile) { int rv; if (init) return -1; _conf(name, mode, syslog_facility, syslog_priority, logfile_priority, logfile); ents = malloc(num_ents * sizeof(struct entry)); if (!ents) return -1; memset(ents, 0, num_ents * sizeof(struct entry)); rv = pthread_create(&thread_handle, NULL, thread_fn, NULL); if (rv) { free(ents); return -1; } done = 0; init = 1; return 0; }
NSHARE::CConfig descriptor_info_t::MSerialize() const { NSHARE::CConfig _conf(NAME); _conf.MAdd( FProgramm.MSerialize()); if(!FInfo.MIsEmpty()) _conf.MAdd(/*CONNECTION_INFO,*/FInfo); return _conf; }
CConfig diagnostic_io_t::MSerialize() const { CConfig _conf(NAME); _conf.MAdd("recv",FRecvData); _conf.MAdd("sent",FSentData); _conf.MAdd("recvc",FRecvCount); _conf.MAdd("sentc",FSentCount); return _conf; }
void logt_conf(const char *name, int mode, int syslog_facility, int syslog_priority, int logfile_priority, const char *logfile) { if (!init) return; _conf(name, mode, syslog_facility, syslog_priority, logfile_priority, logfile); }