- Timestamp:
- Jun 12, 2015, 1:12:32 PM (10 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/Makefile.in
r652 r653 107 107 install -d ${CGI_DIR} 108 108 install zoo_loader.cgi ${CGI_DIR}/ 109 install libzoo_service.${EXT} ${DESTDIR}${INST_LIB}/ libzoo_service.${VERSION}.${REVISION}.${EXT}109 install libzoo_service.${EXT} ${DESTDIR}${INST_LIB}/${LIBZOO_SERVICE} 110 110 (cd ${DESTDIR}${INST_LIB} ; \ 111 111 if [ -e "libzoo_service.${EXT}" ]; then rm libzoo_service.${EXT}; fi ; \ 112 ln -s libzoo_service.${VERSION}.${REVISION}.${EXT} libzoo_service.${EXT})112 ln -s ${LIBZOO_SERVICE} libzoo_service.${EXT}) 113 113 install -d ${DESTDIR}${INST_INCLUDE}/zoo 114 114 install service.h service_internal.h ${DESTDIR}${INST_INCLUDE}/zoo -
trunk/zoo-project/zoo-kernel/ZOOMakefile.opts.in
r652 r653 15 15 EXT=dylib 16 16 DEFAULT_OPTS=-Wl,-compatibility_version,${VERSION},-current_version,${VERSION},-install_name,${DESTDIR}${INST_LIB}/libzoo_service.${VERSION}.${REVISION}.dylib 17 LIBZOO_SERVICE=libzoo_service.${VERSION}.${REVISION}.${EXT} 18 else 19 LIBZOO_SERVICE=libzoo_service.${EXT}.${VERSION} 17 20 endif 18 21 -
trunk/zoo-project/zoo-kernel/server_internal.c
r652 r653 31 31 #include <uuid/uuid.h> 32 32 33 /** 34 * Detect WPS version used (1.0.0 or 2.0.0). 35 * 36 * @param version number as char* (1.0.0 or 2.0.0) 37 * @return 0 in case of version 1.0.0, 1 for 2.0.0, -1 in other case 38 */ 33 39 int getVersionId(const char* version){ 34 40 int schemaId=0; … … 37 43 return schemaId; 38 44 } 39 return 0;45 return -1; 40 46 } 41 47 … … 51 57 uuid_t uuid; 52 58 uuid_generate_time(uuid); 53 char * rest;59 char rest[128]; 54 60 uuid_unparse(uuid,rest); 55 61 sprintf(res,"%s", rest); -
trunk/zoo-project/zoo-kernel/service_internal.c
r652 r653 57 57 FILE* f0 = fopen (fbkpid, "r"); 58 58 if(f0!=NULL){ 59 long flen; 60 char *fcontent; 59 61 fseek (f0, 0, SEEK_END); 60 longflen = ftell (f0);62 flen = ftell (f0); 61 63 fseek (f0, 0, SEEK_SET); 62 char *tmps1= (char *) malloc ((flen + 1) * sizeof (char));63 fread( tmps1,flen,1,f0);64 tmps1[flen]=0;64 fcontent = (char *) malloc ((flen + 1) * sizeof (char)); 65 fread(fcontent,flen,1,f0); 66 fcontent[flen]=0; 65 67 fclose(f0); 66 return tmps1;68 return fcontent; 67 69 }else 68 70 return NULL; … … 188 190 FILE* f0 = fopen (fbkpid, "r"); 189 191 if(f0!=NULL){ 190 char* stat=getStatusId(conf,lid); 192 semid lockid; 193 char* stat; 194 long flen; 195 stat=getStatusId(conf,lid); 191 196 if(stat!=NULL){ 192 197 setMapInMaps(conf,"lenv","lid",stat); 193 semidlockid=acquireLock(conf);198 lockid=acquireLock(conf); 194 199 if(lockid<0) 195 200 return NULL; 196 201 } 197 202 fseek (f0, 0, SEEK_END); 198 longflen = ftell (f0);203 flen = ftell (f0); 199 204 if(flen>0){ 205 char *fcontent; 200 206 fseek (f0, 0, SEEK_SET); 201 char *tmps1= (char *) malloc ((flen + 1) * sizeof (char));202 fread( tmps1,flen,1,f0);203 tmps1[flen]=0;207 fcontent = (char *) malloc ((flen + 1) * sizeof (char)); 208 fread(fcontent,flen,1,f0); 209 fcontent[flen]=0; 204 210 fclose(f0); 205 211 free(fbkpid); … … 208 214 free(stat); 209 215 } 210 return tmps1;216 return fcontent; 211 217 } 212 218 fclose(f0); -
trunk/zoo-project/zoo-kernel/service_internal_saga.c
r652 r653 138 138 case CALLBACK_DLG_CONTINUE: 139 139 case CALLBACK_PROCESS_SET_READY: 140 case CALLBACK_PROCESS_GET_OKAY: 141 return res; 140 142 break; 141 143 … … 145 147 if( cPercent != status ){ 146 148 status=cPercent; 147 } 148 } 149 break; 150 151 case CALLBACK_PROCESS_GET_OKAY: 152 status=1; 149 }else 150 return res; 151 } 153 152 break; 154 153 … … 178 177 else 179 178 res = 0; 179 return res; 180 180 break; 181 181 -
trunk/zoo-project/zoo-kernel/sqlapi.h
r652 r653 38 38 void recordStoredFile(maps*,const char*,const char*,const char*); 39 39 void recordServiceStatus(maps*); 40 void recordResponse(maps*,char* ,bool);40 void recordResponse(maps*,char*); 41 41 #endif 42 42
Note: See TracChangeset
for help on using the changeset viewer.