00001 /* 00002 * $Id$ 00003 * 00004 * SNMPStats Module 00005 * Copyright (C) 2006 SOMA Networks, INC. 00006 * Written by: Jeffrey Magder (jmagder@somanetworks.com) 00007 * 00008 * This file is part of Kamailio, a free SIP server. 00009 * 00010 * Kamailio is free software; you can redistribute it and/or modify it 00011 * under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version 00014 * 00015 * Kamailio is distributed in the hope that it will be useful, but 00016 * WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00023 * USA 00024 * 00025 * History: 00026 * -------- 00027 * 2006-11-23 initial version (jmagder) 00028 */ 00029 00041 #ifndef _SNMP_UTILITIES_ 00042 #define _SNMP_UTILITIES_ 00043 00044 #include <time.h> 00045 00046 #include "../../str.h" 00047 #include "../../sr_module.h" 00048 00057 int convertStrToCharString(str *strToConvert, char **copiedString); 00058 00061 int stringHandlerSanityCheck( modparam_t type, void *val, char *parameterName); 00062 00068 int get_statistic(char *statName); 00069 00073 char * convertTMToSNMPDateAndTime(struct tm *timeStructure); 00074 00075 #endif
1.7.1