Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "/usr/local/include/wurfl.h"
- int main()
- {
- const char* root = "/home/deploy/wurfl-2.3.2.xml";
- const char* patches[] = {};
- wurfl_t* wurfl = wurfl_init(root, patches);
- 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";
- //VRT_GetHdr(sp, HDR_REQ, "\013User-Agent:");
- device_t* device = wurfl_match(wurfl, user_agent);
- return 0;
- }
Add Comment
Please, Sign In to add comment