libtiepie-hw
1.1.3
|
Modules | |
Callbacks | |
Functions to set callbacks that are triggered when the server list is changed. | |
Functions | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_network_servers_add (const char *url, uint32_t length, tiepie_hw_handle *handle) |
Add a server to the list of servers. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_network_servers_remove (const char *url, uint32_t length, tiepie_hw_bool force) |
Remove a server from the list of servers. More... | |
TIEPIE_HW_API uint32_t | tiepie_hw_network_servers_get_count (void) |
Get the number of servers available. More... | |
TIEPIE_HW_API tiepie_hw_handle | tiepie_hw_network_servers_get_by_index (uint32_t index) |
Get the handle of a server, based on its index in the list of servers. More... | |
TIEPIE_HW_API tiepie_hw_handle | tiepie_hw_network_servers_get_by_url (const char *url, uint32_t length) |
Get the handle of a server, based on its URL. More... | |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_network_servers_add | ( | const char * | url, |
uint32_t | length, | ||
tiepie_hw_handle * | handle | ||
) |
Add a server to the list of servers.
[in] | url | Pointer to URL character buffer. |
[in] | length | Length of URL buffer or TIEPIE_HW_STRING_LENGTH_NULL_TERMINATED. |
[out] | handle | The handle to the added server or NULL . |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_network_servers_remove | ( | const char * | url, |
uint32_t | length, | ||
tiepie_hw_bool | force | ||
) |
Remove a server from the list of servers.
[in] | url | Pointer to URL character buffer. |
[in] | length | Length of URL buffer or TIEPIE_HW_STRING_LENGTH_NULL_TERMINATED. |
[in] | force | If TIEPIE_HW_BOOL_TRUE all open devices are closed, if TIEPIE_HW_BOOL_FALSE remove only succeeds if no devices are open. |
TIEPIE_HW_API uint32_t tiepie_hw_network_servers_get_count | ( | void | ) |
Get the number of servers available.
TIEPIE_HW_API tiepie_hw_handle tiepie_hw_network_servers_get_by_index | ( | uint32_t | index | ) |
Get the handle of a server, based on its index in the list of servers.
[in] | index | A server index, 0 .. tiepie_hw_network_servers_get_count() - 1. |
NULL
. TIEPIE_HW_API tiepie_hw_handle tiepie_hw_network_servers_get_by_url | ( | const char * | url, |
uint32_t | length | ||
) |
Get the handle of a server, based on its URL.
[in] | url | Pointer to URL character buffer. |
[in] | length | Length of URL buffer or TIEPIE_HW_STRING_LENGTH_NULL_TERMINATED. |
NULL
.