function svc_export_data:string(msg:string) %{ char *tmp, *ptr, *str; char buf[512], cc; str = ptr = THIS->msg; tmp = buf; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp,"clnt:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp+cc,"path:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"expire: %s ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"flags: %s ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"uid: %s ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"gid: %s ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"fsid: %s ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; if (strcmp(str, "uuid") == 0) str = ptr; sprintf(tmp+cc,"uuid: %s ", str); cc = strlen(tmp); } snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); %} function ip_map_data:string(msg:string) %{ char *tmp, *ptr, *str; char buf[512], cc; str = ptr = THIS->msg; tmp = buf; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp,"class:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp+cc,"addr:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"domain: %s ", str); cc = strlen(tmp); } snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); %} function expkey_data:string(msg:string) %{ char *tmp, *ptr, *str; char buf[512], cc; str = ptr = THIS->msg; tmp = buf; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp,"client:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp+cc,"fsidtype:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"fsid: %s ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"path:'%s' ", str); cc = strlen(tmp); } snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); %} function idtoname_data:string(msg:string) %{ char *tmp, *ptr, *str; char buf[512], cc; str = ptr = THIS->msg; tmp = buf; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp,"authname:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; *ptr++ = '\0'; sprintf(tmp+cc,"type:'%s' ", str); cc = strlen(tmp); str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"id: %s ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"expiry:'%s' ", str); cc = strlen(tmp); } str = ptr; while (ptr != NULL && *ptr != ' ') ptr++; if (ptr != NULL ) { *ptr++ = '\0'; sprintf(tmp+cc,"name:'%s' ", str); cc = strlen(tmp); } snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); %}