17 "title" :
"Leap Pointable Type",
18 "description" :
"Whether a pointable is a finger or a tool.",
19 "keywords" : [
"leap",
"pointable" ],
22 "VuoList_VuoLeapPointableType"
34 const char *valueAsString =
"";
35 if (json_object_get_type(js) == json_type_string)
36 valueAsString = json_object_get_string(js);
40 if( !strcmp(valueAsString,
"tool") )
41 value = VuoLeapPointableType_Tool;
43 value = VuoLeapPointableType_Finger;
54 char *valueAsString =
"";
58 case VuoLeapPointableType_Finger:
59 valueAsString =
"finger";
62 case VuoLeapPointableType_Tool:
63 valueAsString =
"tool";
66 return json_object_new_string(valueAsString);
86 char *valueAsString =
"";
90 case VuoLeapPointableType_Finger:
91 valueAsString =
"Finger";
93 case VuoLeapPointableType_Tool:
94 valueAsString =
"Tool";
97 return strdup(valueAsString);