Guest User

Untitled

a guest
Sep 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "/usr/local/include/wurfl.h"
  3.  
  4. int main()
  5. {
  6. const char* root = "/home/deploy/wurfl-2.3.2.xml";
  7. const char* patches[] = {};
  8.  
  9. wurfl_t* wurfl = wurfl_init(root, patches);
  10.  
  11. char* user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1";
  12. //VRT_GetHdr(sp, HDR_REQ, "\013User-Agent:");
  13. device_t* device = wurfl_match(wurfl, user_agent);
  14.  
  15. return 0;
  16. }
Add Comment
Please, Sign In to add comment