Ignore:
Timestamp:
May 1, 2014, 1:28:14 AM (6 years ago)
Author:
djay
Message:

Support metapath embedded in service name. Add support for accessing ZOO-Kernel path subdirectories for full list of available services. Fix issue #98.

File:
1 edited

Legend:

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

    r466 r469  
    430430      map *tmp=getMap(m,n);
    431431      if(tmp->value!=NULL)
    432         free(tmp->value);
     432        free(tmp->value);
    433433      tmp->value=zStrdup(v);
    434434    }
     
    450450        while(_cursor->next!=NULL)
    451451          _cursor=_cursor->next;
    452         map* tmp1=getMap(_cursor,tmp->name);
    453         if(tmp1==NULL)
     452        map* tmp1=getMap(*mo,tmp->name);
     453        if(tmp1==NULL){
    454454          _cursor->next=createMap(tmp->name,tmp->value);
     455        }
    455456        else{
    456           free(tmp1->value);
     457          if(tmp1->value!=NULL)
     458            free(tmp1->value);
    457459          tmp1->value=zStrdup(tmp->value);
    458460        }
     
    567569      }
    568570      else{
    569         maps* tmp1=getMaps(*mo,tmp->name);
    570571        while(_cursor->next!=NULL)
    571572          _cursor=_cursor->next;
     573        maps* tmp1=getMaps(*mo,tmp->name);
    572574        if(tmp1==NULL)
    573575          _cursor->next=dupMaps(&tmp);
     
    687689        _ztmpm->value=zStrdup(value);
    688690      }else{
    689         addToMap(_tmpm->content,subkey,value);
     691        maps *tmp=(maps*)malloc(MAPS_SIZE);
     692        tmp->name=zStrdup(key);
     693        tmp->content=createMap(subkey,value);
     694        tmp->next=NULL;
     695        addMapsToMaps(&_tmpm,tmp);
     696        freeMaps(&tmp);
     697        free(tmp);
    690698      }
    691699    }else{
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