The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "Liblockdown.h"
ChronicDev (talk | contribs) (New page: == Disclaimer == I made this awhile back, so I don't know if something changed in 3.0 GM that makes this not work. If it doesn't, let me know. You'll need to do some reversing to find out ...) |
ChronicDev (talk | contribs) (→Header) |
||
Line 3: | Line 3: | ||
== Header == |
== Header == |
||
+ | <pre> |
||
− | {{{ |
||
/* |
/* |
||
* lockdown.h |
* lockdown.h |
||
Line 36: | Line 36: | ||
*/ |
*/ |
||
int locklog(char *); // log text to lockdown's log at /Library/Logs/lockdownd.log |
int locklog(char *); // log text to lockdown's log at /Library/Logs/lockdownd.log |
||
+ | </pre> |
||
− | }}} |
Latest revision as of 09:55, 10 July 2009
Disclaimer
I made this awhile back, so I don't know if something changed in 3.0 GM that makes this not work. If it doesn't, let me know. You'll need to do some reversing to find out the "domain" and "key" that you want to get exactly.
Header
/* * lockdown.h * Header for undocumented liblockdown.dylib * iPhoneOS * * Created by Will Strafach on 4/5/09. * Copyright 2009 Chronic Dev. All rights reserved. * */ typedef int lockdown_t; typedef const char lockval_t; typedef const char lockdom_t /* * Connecting to lockdown */ int lockdown_checkin(); // "ping" lockdown, return -1 on fail lockdown_t lockdown_connect(); // connect to lockdown, return 0 on fail void lockdown_disconnect(lockdown_t conn); // disconnect from lockdown /* * Value list thingy */ int lockdown_copy_value(lockdown_t conn, lockdom_t *domain, lockval_t *value); // get value of smth in "defines.h" int lockdown_set_value(lockdown_t conn, lockdom_t *domain, lockval_t *value); // set value of smth in "defines.h" int lockdown_remove_value(lockdown_t conn, lockdom_t *domain, lockval_t *value); // remove value of smth in "defines.h" /* * Logging */ int locklog(char *); // log text to lockdown's log at /Library/Logs/lockdownd.log