ZOO-Project: service_loader.c File Reference
ZOO-Project
service_loader.c File Reference
#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[])
 

Macro Definition Documentation

#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"

Function Documentation

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 ( )

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png