57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
/*
|
|
*
|
|
Copyright (C) 2009-2013 Olof Hagsand and Benny Holmgren
|
|
|
|
This file is part of CLICON.
|
|
|
|
CLICON is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
CLICON is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with CLICON; see the file COPYING. If not, see
|
|
<http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
* hello clicon cli frontend
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <syslog.h>
|
|
#include <unistd.h>
|
|
#include <assert.h>
|
|
#include <math.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/time.h>
|
|
#include <sys/param.h>
|
|
#include <netinet/in.h>
|
|
#include <fnmatch.h> /* matching strings */
|
|
#include <signal.h> /* matching strings */
|
|
|
|
/* clicon */
|
|
#include <cligen/cligen.h>
|
|
#include <clicon/clicon.h>
|
|
#include <clicon/clicon_cli.h>
|
|
|
|
/*
|
|
* Plugin initialization
|
|
*/
|
|
int
|
|
plugin_init(clicon_handle h)
|
|
{
|
|
struct timeval tv;
|
|
|
|
gettimeofday(&tv, NULL);
|
|
srandom(tv.tv_usec);
|
|
|
|
return 0;
|
|
}
|
|
|