diff options
Diffstat (limited to 'src/ostrace.c')
| -rw-r--r-- | src/ostrace.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/ostrace.c b/src/ostrace.c index 9867019..240d2fd 100644 --- a/src/ostrace.c +++ b/src/ostrace.c | |||
| @@ -114,27 +114,6 @@ ostrace_error_t ostrace_client_free(ostrace_client_t client) | |||
| 114 | return err; | 114 | return err; |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | /* | ||
| 118 | ostrace_error_t ostrace_receive_with_timeout(ostrace_client_t client, char* data, uint32_t size, uint32_t *received, unsigned int timeout) | ||
| 119 | { | ||
| 120 | ostrace_error_t res = OSTRACE_E_UNKNOWN_ERROR; | ||
| 121 | int bytes = 0; | ||
| 122 | |||
| 123 | if (!client || !data || (size == 0)) { | ||
| 124 | return OSTRACE_E_INVALID_ARG; | ||
| 125 | } | ||
| 126 | |||
| 127 | res = ostrace_error(service_receive_with_timeout(client->parent, data, size, (uint32_t*)&bytes, timeout)); | ||
| 128 | if (res != OSTRACE_E_SUCCESS && res != OSTRACE_E_TIMEOUT && res != OSTRACE_E_NOT_ENOUGH_DATA) { | ||
| 129 | debug_info("Could not read data, error %d", res); | ||
| 130 | } | ||
| 131 | if (received) { | ||
| 132 | *received = (uint32_t)bytes; | ||
| 133 | } | ||
| 134 | |||
| 135 | return res; | ||
| 136 | }*/ | ||
| 137 | |||
| 138 | static ostrace_error_t ostrace_send_plist(ostrace_client_t client, plist_t plist) | 117 | static ostrace_error_t ostrace_send_plist(ostrace_client_t client, plist_t plist) |
| 139 | { | 118 | { |
| 140 | ostrace_error_t res = OSTRACE_E_UNKNOWN_ERROR; | 119 | ostrace_error_t res = OSTRACE_E_UNKNOWN_ERROR; |
