ZOO-Project
|
#include <string.h>
#include "service.h"
#include "service_internal.h"
#include "service_internal_python.h"
#include <dirent.h>
#include <signal.h>
#include <unistd.h>
#include <dlfcn.h>
#include <libgen.h>
#include <fcntl.h>
#include <time.h>
#include <stdarg.h>
Macros | |
#define | length(x) (sizeof(x) / sizeof(x[0])) |
Author : Gérald FENOY. More... | |
Functions | |
int | yylex () |
int | crlex () |
void | sigint_handler (int sig) |
int | main (int argc, char *argv[]) |
#define length | ( | x | ) | (sizeof(x) / sizeof(x[0])) |
Author : Gérald FENOY.
Copyright (c) 2009-2010 GeoLabs SARL
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Environment variables definitions. All the following fixed values should be extracted from a configuration main configuration file for all the potential services. END "Environment variables definitions"
int crlex | ( | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Parsing inputs (need a loop over all files in the service path !!)
Valgrind told us that there is an issue regarding a "conditional jump or move depends on uninitialised value(s)" for freeIOType
Need to check if we need to fork to load a status enabled
dady : set status to SERVICE_ACCEPTED
set status to SERVICE_STARTED
set status to status code returned by the service function
void sigint_handler | ( | int | sig | ) |
int yylex | ( | ) |