flat_rpc.c

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2004 FhG FOKUS
00005  * Copyright (C) 2008 iptelorg GmbH
00006  * Written by Jan Janak <jan@iptel.org>
00007  *
00008  * This file is part of SER, a free SIP server.
00009  *
00010  * SER is free software; you can redistribute it and/or modify it under the
00011  * terms of the GNU General Public License as published by the Free Software
00012  * Foundation; either version 2 of the License, or (at your option) any later
00013  * version.
00014  *
00015  * SER is distributed in the hope that it will be useful, but WITHOUT ANY
00016  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00017  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00018  * details.
00019  *
00020  * You should have received a copy of the GNU General Public License along
00021  * with this program; if not, write to the Free Software Foundation, Inc., 
00022  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00023  */
00024 
00033 #include "flat_rpc.h"
00034 #include "flatstore_mod.h"
00035 
00036 #include <time.h>
00037 
00044 static void rotate(rpc_t* rpc, void* c)
00045 {
00046         *flat_rotate = time(0);
00047 }
00048 
00049 
00050 static const char* flat_rotate_doc[2] = {
00051         "Close and reopen flatrotate files during log rotation.",
00052         0
00053 };
00054 
00055 
00056 rpc_export_t flat_rpc[] = {
00057         {"flatstore.rotate", rotate, flat_rotate_doc, 0},
00058         {0, 0, 0, 0},
00059 };
00060