Ignore:
Timestamp:
May 10, 2014, 4:23:03 PM (10 years ago)
Author:
djay
Message:

Remove leaks from DescribeProcess? and JavaScript? support. Fix wrong ulinet update on previous commit. Use the new updateStatus/setOutputValue functions as described in #88 from longProcess. Add default value for QREncode service in ZCFG. Fix name of profile service in the ZCFG file.

Location:
trunk/zoo-project/zoo-services
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/gdal/profile/cgi-env/GdalExtractProfile.zcfg

    r106 r471  
    66 statusSupported = true
    77 serviceType = C
    8  serviceProvider = gdal_profile_service.zo
     8 serviceProvider = profile_service.zo
    99 <MetaData>
    1010   title = My Demo
  • trunk/zoo-project/zoo-services/qrencode/Makefile

    r385 r471  
    55
    66cgi-env/qrencode.zo: qrenc-service.c
    7         g++ -DZOO_SERVICE_PROVIDER ${CFLAGS} -shared -fpic -o cgi-env/qrencode.zo ./qrenc-service.c -lqrencode ${GDAL_LIBS} ${MACOS_LD_FLAGS}
     7        g++ -DZOO_SERVICE_PROVIDER ${CFLAGS} -shared -fpic -o cgi-env/qrencode.zo ./qrenc-service.c -lqrencode ${GDAL_LIBS} -lpng ${MACOS_LD_FLAGS}
    88
    99clean:
  • trunk/zoo-project/zoo-services/qrencode/cgi-env/QREncode.zcfg

    r385 r471  
    2929   <LiteralData>
    3030    dataType = string
    31     <Default />
     31    <Default>
     32     value=000000
     33    </Default>
    3234   </LiteralData>
    3335  [bgcolor]
     
    3840   <LiteralData>
    3941    dataType = string
    40     <Default />
     42    <Default>
     43     value=ffffff
     44    </Default>
    4145   </LiteralData>
    4246  [size]
     
    4751   <LiteralData>
    4852    dataType = integer
    49     <Default />
     53    <Default>
     54     value=3
     55    </Default>
    5056   </LiteralData>
    5157 </DataInputs>
  • trunk/zoo-project/zoo-services/utils/status/service.c

    r467 r471  
    104104       */
    105105      char *tmpStr=getStatus(atoi(tmpMap->value));
     106      fprintf(stderr,"DEBUG: %s \n",tmpStr);
    106107      if(tmpStr!=NULL && strncmp(tmpStr,"-1",2)!=0){
    107108        char *tmpStr1=strdup(tmpStr);
     
    121122        setMapInMaps(outputs,"Result","value",(char*)xmlbuff);
    122123        xmlFree(xmlbuff);
    123         free(tmpStr);
    124124        free(tmpStr1);
    125125        free(tmpStr0);
     
    154154    int i=0;
    155155    while(i<100){
    156       char tmp[4];
    157156      char message[10];
    158       sprintf(tmp,"%i",i);
    159       map* tmpMap=NULL;
    160       tmpMap=getMapFromMaps(conf,"lenv","sid");
    161       if(tmpMap!=NULL)
    162         fprintf(stderr,"Status %s %s\n",tmpMap->value,tmp);
    163157      sprintf(message,"Step %d",i);
    164       setMapInMaps(conf,"lenv","status",tmp);
    165       setMapInMaps(conf,"lenv","message",message);
    166       updateStatus(conf);
     158      updateStatus(conf,i,message);
    167159#ifndef WIN32
    168160      sleep(1);
     
    172164      i+=5;
    173165    }
    174     setMapInMaps(outputs,"Result","value","\"Running long process successfully\"");
     166    setOutputValue(outputs,"Result","\"Long process run successfully\"",-1);
    175167    return SERVICE_SUCCEEDED;
    176168  }
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