summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-09-12Update the afc_get_device_info helper to return an afc_error_tGravatar Martin Szulecki1-11/+17
We should return any underlying error afc_get_device_info returns so one is able to act properly. Also renamed it to "key" instead of "field" to be more generic.
2009-08-04Invalid check for host_id in userpref_get_host_idGravatar Nikias Bassen1-1/+1
On a system without a previous pairing, libiphone fails to connect to the device: userpref_get_host_id: Using (null) as HostID The code checks if host_id is NULL but it needs to check if *host_id is NULL, otherwise it won't generate a new HostID. [#69 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-08-03Add afc_get_device_info_field() helper functionGravatar Bastien Nocera1-0/+29
For use in front-end applications, also serves to document the available keys.
2009-08-03Avoid invalid memory accesses in lockdownd_client_new()Gravatar Bastien Nocera1-1/+1
Valgrind complains: ==2678== Conditional jump or move depends on uninitialised value(s) ==2678== at 0x3ACD40646C: lockdownd_client_new (lockdown.c:662) ==2678== by 0x405BA6: g_vfs_afc_volume_new (afc-volume.c:113) ==2678== by 0x406541: g_vfs_afc_monitor_device_added (afc-volume-monitor.c:46) ==2678== by 0x4066B1: g_vfs_afc_volume_monitor_constructor (afc-volume-monitor.c:173) ==2678== by 0x3A7FE11A38: g_object_newv (in /lib64/libgobject-2.0.so.0.2000.4) ==2678== by 0x3A7FE12584: g_object_new_valist (in /lib64/libgobject-2.0.so.0.2000.4) ==2678== by 0x3A7FE126DB: g_object_new (in /lib64/libgobject-2.0.so.0.2000.4) ==2678== by 0x408AD5: monitor_try_create (gvfsproxyvolumemonitordaemon.c:1651) ==2678== by 0x408C20: g_vfs_proxy_volume_monitor_daemon_main (gvfsproxyvolumemonitordaemon.c:1694) ==2678== by 0x37E881EA2C: (below main) (in /lib64/libc-2.10.1.so) ==2678== Uninitialised value was created by a stack allocation ==2678== at 0x405B00: g_vfs_afc_volume_new (afc-volume.c:138)
2009-07-29Add handling of afc_remove_path's unknown error code which is an ENOTEMPTYGravatar Martin Szulecki1-0/+4
2009-07-28Fix potential memory corruption in calls to gnutls function on 64 bit archGravatar Nikias Bassen2-15/+25
[#60 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-07-26Merge commit 'martin-s/martin'Gravatar Matt Colyer14-835/+811
[#46 state:resolved]
2009-07-26fix most -Wall warningsGravatar Christophe Fergeau2-1/+2
add missing includes, add some casts to avoid format warnings, mark one function as static. There are still warnings about unused argc/argv [#61 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-07-25Conform to protocol and add session id argument to lockdownd_stop_session()Gravatar Martin Szulecki1-3/+3
2009-07-25Implement afc_file_tell() and adjust afc_receive_data() to handle itGravatar Martin Szulecki1-2/+43
2009-07-25Remove AFC to errno conversion and make afc_receive_data() return AFC errorsGravatar Martin Szulecki2-163/+81
2009-07-25Update AFC API and use error codes from the STATUS operation responseGravatar Martin Szulecki2-155/+153
2009-07-25Rename iphone_get_device_handle to iphone_device_get_handle and update toolsGravatar Martin Szulecki2-10/+11
2009-07-25Follow glib style and rename iphone_free_device to iphone_device_freeGravatar Martin Szulecki1-3/+3
2009-07-25Update lockdown API and introduce new error codesGravatar Martin Szulecki2-153/+162
2009-07-25Update NotificationProxy API and introduce new error codesGravatar Martin Szulecki1-50/+49
2009-07-25Update MobileSync API and introduce mobilesync error codesGravatar Martin Szulecki2-27/+28
2009-07-25Improve API of userpref systemGravatar Martin Szulecki3-110/+131
2009-07-25Fix includes of utilsGravatar Martin Szulecki2-4/+4
2009-07-25Define remaining unknown AFC operations; SUCCESS is actually a DATA operationGravatar Martin Szulecki2-49/+51
2009-07-24Use iphone_device_get_uuid() not lockdown, for less overhead where possibleGravatar Martin Szulecki2-17/+16
2009-07-24Improve debug output messages by using __func__ everywhere and adjust wordingGravatar Martin Szulecki6-96/+79
2009-07-24Add missing macro preventing cyclic includes in notification proxy headerGravatar Martin Szulecki1-2/+7
2009-07-24Rename iphone_set_debug() to iphone_set_debug_level() and code using itGravatar Martin Szulecki1-1/+1
2009-07-24Add new NP_ITDBPREP_DID_END notification signaling music db refreshGravatar Martin Szulecki1-1/+2
2009-07-20New type afc_lock_op_t with allowed lock operations for afc_lock_file. Only ↵Gravatar Nikias Bassen1-12/+10
non-blocking locks are supported via AFC. Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
2009-07-18Implement lockdown set_value, remove_value and enter_recovery request APIGravatar Martin Szulecki1-4/+159
[#46 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-07-18Cleanup mobilesync API and bindings. Move get_all_contacts() into msyncclient.Gravatar Martin Szulecki2-118/+15
2009-07-18Use new plist_copy instead of serialization workaround in lockdownd_et_value()Gravatar Martin Szulecki1-11/+1
2009-07-18Cleanup lockdown request API and fix docs, tools, bindings and exportsGravatar Martin Szulecki2-436/+366
2009-07-18API cleanup for NotificationProxyGravatar Nikias Bassen2-23/+23
2009-07-18API cleanup for AFCGravatar Nikias Bassen2-31/+31
2009-07-15Implement lockdown set_value, remove_value and enter_recovery request APIGravatar Martin Szulecki1-4/+159
2009-07-14Cleanup mobilesync API and bindings. Move get_all_contacts() into msyncclient.Gravatar Martin Szulecki2-118/+15
2009-07-10Use new plist_copy instead of serialization workaround in lockdownd_et_value()Gravatar Martin Szulecki1-11/+1
2009-07-07Cleanup lockdown request API and fix docs, tools, bindings and exportsGravatar Martin Szulecki2-436/+366
2009-07-07API cleanup for NotificationProxyGravatar Nikias Bassen2-23/+23
Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
2009-07-07API cleanup for AFCGravatar Nikias Bassen2-31/+31
Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
2009-07-07Support for creating hard- and symlinksGravatar Nikias Bassen1-0/+52
2009-07-07AFC cleanup: remove iphone_afc_file_* and use handles instead. Removed ↵Gravatar Nikias Bassen2-163/+66
afc_get_file_attr because this function has to go into the program (like ifuse); afc_get_file_info has to be used instead. Modified dispatch_AFC_Packet so that the real buffer size has to be specified (instead of length-1).
2009-07-01lockdown: fix receive of large TLS-encapsulated plistsGravatar Nikias Bassen1-8/+12
[#48 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-06-29Silence compiler warning for dispatch_AFC_packet()Gravatar Martin Szulecki1-1/+1
2009-05-23Add a method to support fetching the UUID of the phone.Gravatar Matt Colyer2-0/+15
2009-05-19lockdown: Check for gnutls errors and silence compiler warnings. general: ↵Gravatar Nikias Bassen1-28/+42
Removed some commented-out code. [#39 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-05-18Make use of usbmuxd and remove libusb dependenciesGravatar Nikias Bassen13-825/+148
Signed-off-by: Matt Colyer <matt@colyer.name>
2009-05-12Fix some comments in mobilesync.0.9.1Gravatar Matt Colyer1-6/+2
2009-05-10Fixes for 0.9.1 release.Gravatar Matt Colyer1-1/+8
2009-05-10NotificationProxy support added.0.9.0Gravatar Nikias Bassen6-112/+359
[#27 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-05-08AFC cleanup and improved error handlingGravatar Nikias Bassen2-115/+253
2009-04-23Detect unknown HostId in StartSession an trigger Pair again if needed.Gravatar Jonathan Beck1-1/+54