Ignore:
Timestamp:
Oct 22, 2014, 7:46:23 PM (10 years ago)
Author:
david
Message:

-loading files configuration on startup
-devel version with probably a lot of leak
-using temporarily glib to store services

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PublicaMundi_David-devel/zoo-project/zoo-kernel/service.h

    r490 r512  
    8282#define IOTYPE_SIZE MAP_SIZE+sizeof(NULL)
    8383#define MAPS_SIZE (2*sizeof(char*))+sizeof(map*)+MAP_SIZE
    84 #define SERVICE_SIZE (ELEMENTS_SIZE*2)+(MAP_SIZE*2)+sizeof(char*)
     84#define SERVICE_SIZE (ELEMENTS_SIZE*2)+(MAP_SIZE*2)+sizeof(char*)+sizeof(char*)+sizeof(char*)
     85//#define SERVICE_SIZE sizeof(struct service)
    8586
    8687#define SHMSZ     27
     
    333334  typedef struct service{
    334335    char* name;
     336    char* identifier;
     337    char * zcfg;
    335338    struct map* content;
    336339    struct map* metadata;
     
    407410    if(tmp!=NULL){
    408411      if(tmp->name!=NULL)
    409         free(tmp->name);
     412                free(tmp->name);
     413      if (tmp->identifier!=NULL)
     414            free(tmp->identifier);
     415      if (tmp->zcfg!=NULL)
     416            free(tmp->zcfg);
    410417      freeMap(&tmp->content);
    411418      if(tmp->content!=NULL)
     
    873880  static void dumpService(service* s){
    874881    fprintf(stderr,"++++++++++++++++++\nSERVICE [%s]\n++++++++++++++++++\n",s->name);
     882    if (s->identifier !=NULL)
     883        fprintf(stderr,"IDENTIFIER : %s \n",s->identifier);
     884    if (s->zcfg !=NULL)
     885        fprintf(stderr,"ZCFG PATH : %s \n",s->zcfg);
    875886    if(s->content!=NULL){
    876887      fprintf(stderr,"CONTENT MAP\n");
Note: See TracChangeset for help on using the changeset viewer.

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