static const char version[] = "$Id$"; /* * logging_event.c * * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include #include #include #include #include /*******************************************************************************/ extern log4c_logging_event_t* log4c_logging_event_new( const char* a_category, int a_priority, const char* a_message) { log4c_logging_event_t* evt; evt = (log4c_logging_event_t*)sd_calloc(1, sizeof(log4c_logging_event_t)); evt->evt_category = a_category; evt->evt_priority = a_priority; evt->evt_msg = a_message; SD_GETTIMEOFDAY(&evt->evt_timestamp, NULL); return evt; } /*******************************************************************************/ extern void log4c_logging_event_delete(log4c_logging_event_t* ptrThis) { if (!ptrThis) return; free(ptrThis); }