Ignore:
Timestamp:
Sep 12, 2018, 6:05:49 PM (6 years ago)
Author:
djay
Message:

Make sure to initialize properly every field of a service.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/service.c

    r877 r881  
    452452}
    453453
     454
     455/**
     456 * Allocate memory for a service.
     457 * Require to call free after calling this function.
     458 *
     459 * @return the service
     460 */
     461service* createService(){
     462  service *s1 = (service *) malloc (SERVICE_SIZE);
     463  s1->name=NULL;
     464  s1->content=NULL;
     465  s1->metadata=NULL;
     466  s1->additional_parameters=NULL;
     467  s1->inputs=NULL;
     468  s1->outputs=NULL;
     469  return s1;
     470}
     471
    454472/**
    455473 * Free allocated memory of a service.
    456  * Require to call free on e after calling this function.
     474 * Require to be invoked for every createService call.
    457475 *
    458476 * @param s the service to free
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