root = get_cached(url, name);if(provider->error_number !=0)returnNULL;intstatus = get_int(root,"status_code");if(status !=200) {sprintf(last_error,"get stream status: %d", status); provider->error_number =1;returnNULL; } jres =json_object_object_get_ex(root,"data", &obj);if...
return NEWERROR(CODE_BAD_REQUEST, "Invalid '%s' field", k); json_object_object_foreach(sub,key,val) { if (!json_object_is_type(val, json_type_string)) continue; g_hash_table_insert(dst, g_strdup(key), metautils_gba_from_string( json_object_get_string(val))); } ...
json_object* poNativeGeom =NULL;if( pszNativeMediaType && EQUAL(pszNativeMediaType,"application/vnd.geo+json") ) {constchar* pszNativeData = poFeature->GetNativeData(); json_object* poNativeJSon =NULL;if( pszNativeData && OGRJSonParse(pszNativeData, &poNativeJSon) &&json_object_get_...
sound_fail = j.get_string("sound_fail", _("thump!"));if( is_furniture ) { furn_set = furn_str_id( j.get_string("furn_set","f_null") ); }else{ ter_set = ter_str_id( j.get_string("ter_set") ); }if( j.has_member("items") ) { JsonIn& stream = *j.get_raw("it...
error:returnNULL; } 开发者ID:TurboGit,项目名称:darktable,代码行数:32,代码来源:googlephoto.c 示例4: pb_process_frame ▲点赞 2▼ staticvoidpb_process_frame(PushBulletAccount *pba,constgchar *frame){ JsonParser *parser = json_parser_new(); ...
JsonMaximumRule rule =newJsonMaximumRule(maximum.ToDecimal(), exclusiveMaximum !=null); rules.Add(rule); } } 开发者ID:amacal,项目名称:jinx,代码行数:11,代码来源:JsonMaximumRuleFactory.cs 示例3: CreateRequestDataFromJson ▲点赞 4▼
g_string_assign(ctx->errmsg, errormessage);returnNULL; }returnrootdict; }else// not a json response, can be the upload-token{ ctx->response = g_string_new(response->str);returnNULL; } } 开发者ID:TurboGit,项目名称:darktable,代码行数:30,代码来源:googlephoto.c ...
inputArgv[inputArgc] =NULL;// Connect to the viewer process. Our command line arguments// should contain The viewer is executed using// "visit -viewer".//viewerP =newParentProcess; viewerP->Connect(1,1, &inputArgc, &inputArgv,true);//...这里部分代码省略... 开发者ID:burlen,项目...
IAsyncResult result = proc.BeginInvoke(context,null,null); gadgets.Add(result); }foreach(varentry in gadgets) {try{ AsyncResult result = (AsyncResult)entry; PreloadProcessor proc = (PreloadProcessor)result.AsyncDelegate; JsonObject gadget = proc.EndInvoke(result); ...
{returnnull; } MyRotationFilter result =newMyRotationFilter(); result.RotationAngle = jsonObject.GetNumberSingleValue("rotationAngle").Value;returnresult; } 开发者ID:Gordon-from-Blumberg,项目名称:Piczard.Examples,代码行数:12,代码来源:MyRotationFilter.cs ...