Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. struct RestResourceNode_S
  2. {
  3. RestResource_T resource;
  4. struct RestResourceNode_S const *next;
  5. };
  6.  
  7. struct RestResourcesManager_S
  8. {
  9. struct RestResourceNode_S const * resourcesList;
  10. struct RestResourceNode_S const * cursor;
  11. };
  12.  
  13. typedef struct RestResourcesManager_S RestResourcesManager_T;
  14.  
  15.  
  16.  
  17.  
  18. /* Note: Resource handler for "/test" and "test/*", but not "/test*" */
  19. static char const resource02Url[] = "/test";
  20. static char const resource02Type[] = "type3";
  21. static char const resource02Interface[] = "if3 if4";
  22. static int resource02Role =2;
  23. static struct RestResourceNode_S resource02 =
  24. {
  25. {
  26. resource02Url,
  27. resource02Type,
  28. resource02Interface,
  29. resource02Role,
  30. &Resc02Handler_call
  31. },
  32. &resource01,
  33. };
  34.  
  35.  
  36. /home/serval/workspace/posix/examples/RestServerApp_POSIX/src/RestApp/RestResources.c:47: error: initializer element is not constant
  37. /home/serval/workspace/posix/examples/RestServerApp_POSIX/src/RestApp/RestResources.c:47: error: (near initialization for 'resource01.resource.role')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement