Ignore:
Timestamp:
Feb 12, 2011, 4:14:17 PM (13 years ago)
Author:
djay
Message:

Code cleanup to avoid most of the warning messages at compilation time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/service.h

    r109 r114  
    5555#define SHMSZ     27
    5656
     57
     58  /**
     59   * \struct map
     60   * \brief KVP linked list
     61   *
     62   * Deal with WPS KVP (name,value).
     63   * A map is defined as:
     64   *  - name : a key,
     65   *  - value: a value,
     66   *  - next : a pointer to the next map if any.
     67   */
     68  typedef struct map{
     69    char* name;
     70    char* value;
     71    struct map* next;
     72  } map;
     73
     74#ifdef WIN32
     75#define NULLMAP ((map*) 0)
     76#else
     77#define NULLMAP NULL
     78#endif
     79
    5780  /**
    5881   * \struct maps
     
    6083   *
    6184   * Small object to store WPS KVP set.
     85   * Maps is defined as:
     86   *  - a name,
     87   *  - a content map,
     88   *  - a pointer to the next maps if any.
    6289   */
    6390  typedef struct maps{
     
    6895
    6996  /**
    70    * \struct map
    71    * \brief KVP linked list
    72    *
    73    * Deal with WPS KVP (name,value).
     97   * \brief Dump a map on stderr
    7498   */
    75   typedef struct map{
    76     char* name;       /* The key */
    77     char* value;      /* The value */
    78     struct map* next; /* Next couple */
    79   } map;
    80 
    81 #ifdef WIN32
    82 #define NULLMAP ((map*) 0)
    83 #else
    84 #define NULLMAP NULL
    85 #endif
    86 
    8799  static void _dumpMap(map* t){
    88100    if(t!=NULL){
     
    181193  }
    182194
    183   static map* getMapFromMaps(maps* m,char* key,char* subkey){
     195  static map* getMapFromMaps(maps* m,const char* key,const char* subkey){
    184196    maps* _tmpm=getMaps(m,key);
    185197    if(_tmpm!=NULL){
     
    224236  }
    225237
     238  /**
     239   * \brief Not named linked list
     240   *
     241   * Used to store informations about formats, such as mimeType, encoding ...
     242   *
     243   * An iotype is defined as :
     244   *  - a content map,
     245   *  - a pointer to the next iotype if any.
     246   */
    226247  typedef struct iotype{
    227248    struct map* content;
     
    229250  } iotype;
    230251
     252  /**
     253   * \brief Metadata information about input or output.
     254   *
     255   * The elements are used to store metadata informations defined in the ZCFG.
     256   *
     257   * An elements is defined as :
     258   *  - a name,
     259   *  - a content map,
     260   *  - a metadata map,
     261   *  - a format (possible values are LiteralData, ComplexData or
     262   * BoundingBoxData),
     263   *  - a default iotype,
     264   *  - a pointer to the next elements id any.
     265   */
    231266  typedef struct elements{
    232267    char* name;
     
    252287  } services;
    253288
    254   static bool hasElement(elements* e,char* key){
     289  static bool hasElement(elements* e,const char* key){
    255290    elements* tmp=e;
    256291    while(tmp!=NULL){
     
    476511
    477512
    478   static void setMapInMaps(maps* m,char* key,char* subkey,char *value){
     513  static void setMapInMaps(maps* m,const char* key,const char* subkey,const char *value){
    479514    maps* _tmpm=getMaps(m,key);
    480515    if(_tmpm!=NULL){
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