29 #ifndef __FREEWRL_JS_FIELD_SET_H__
30 #define __FREEWRL_JS_FIELD_SET_H__
32 #define ROUTED_FIELD_EVENT_OUT 0
33 #define ROUTED_FIELD_EVENT_IN 1
35 #define DEF_FINDFIELDFP(arr) int findFieldIn##arr(const char* field)
36 DEF_FINDFIELDFP(FIELDNAMES);
37 DEF_FINDFIELDFP(FIELD);
38 DEF_FINDFIELDFP(EXPOSED_FIELD);
39 DEF_FINDFIELDFP(EVENT_IN);
40 DEF_FINDFIELDFP(EVENT_OUT);
41 DEF_FINDFIELDFP(KEYWORDS);
42 DEF_FINDFIELDFP(PROTOKEYWORDS);
43 DEF_FINDFIELDFP(NODES);
44 DEF_FINDFIELDFP(PROFILES);
45 DEF_FINDFIELDFP(COMPONENTS);
46 DEF_FINDFIELDFP(FIELDTYPES);
47 DEF_FINDFIELDFP(X3DSPECIAL);
48 DEF_FINDFIELDFP(GEOSPATIAL);
49 DEF_FINDFIELDFP(MULTITEXTUREMODE);
50 DEF_FINDFIELDFP(MULTITEXTURESOURCE);
51 DEF_FINDFIELDFP(MULTITEXTUREFUNCTION);
53 int findRoutedFieldInARR (
struct X3D_Node *,
const char *,
int,
const char**,
size_t, BOOL);
54 int findFieldInARR(
const char*,
const char**,
size_t);
55 void findFieldInOFFSETS(
int,
const int,
int *,
int *,
int *);
56 int findIndexInFIELDNAMES(
int,
const char**,
size_t);
57 char *findFIELDNAMESfromNodeOffset(
struct X3D_Node *node,
int offset);
61 #define DEF_FINDROUTEDFIELDFP(arr) int findRoutedFieldIn##arr(struct X3D_Node* node, const char* field, int fromTo)
62 DEF_FINDROUTEDFIELDFP(FIELDNAMES);
63 DEF_FINDROUTEDFIELDFP(EXPOSED_FIELD);
64 DEF_FINDROUTEDFIELDFP(EVENT_IN);
65 DEF_FINDROUTEDFIELDFP(EVENT_OUT);