Ignore:
Timestamp:
Feb 12, 2015, 11:18:07 PM (7 years ago)
Author:
djay
Message:

Continue adding initial doxygen documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal.c

    r579 r580  
    641641  }
    642642  return (char*)"-1";
    643 }
    644 
    645 #endif
    646 
    647 #ifdef USE_JS
    648 
    649 JSBool
    650 JSUpdateStatus(JSContext *cx, uintN argc, jsval *argv1)
    651 {
    652   jsval *argv = JS_ARGV(cx,argv1);
    653   JS_MaybeGC(cx);
    654   int istatus=0;
    655   char *status=NULL;
    656   maps *conf;
    657   if(argc>2){
    658 #ifdef JS_DEBUG
    659     fprintf(stderr,"Number of arguments used to call the function : %i",argc);
    660 #endif
    661     return JS_FALSE;
    662   }
    663   conf=mapsFromJSObject(cx,argv[0]);
    664   if(JS_ValueToInt32(cx,argv[1],&istatus)==JS_TRUE){
    665     char tmpStatus[4];
    666     sprintf(tmpStatus,"%i",istatus);
    667     tmpStatus[3]=0;
    668     status=strdup(tmpStatus);
    669   }
    670   if(getMapFromMaps(conf,"lenv","status")!=NULL){
    671     if(status!=NULL){
    672       setMapInMaps(conf,"lenv","status",status);
    673       free(status);
    674     }
    675     else
    676       setMapInMaps(conf,"lenv","status","15");
    677     _updateStatus(conf);
    678   }
    679   freeMaps(&conf);
    680   free(conf);
    681   JS_MaybeGC(cx);
    682   return JS_TRUE;
    683643}
    684644
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