Add chiaki_discovery_wakeup()

This commit is contained in:
Florian Märkl 2019-10-25 14:28:02 +02:00
commit e3afc11a35
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
3 changed files with 63 additions and 47 deletions

View file

@ -112,6 +112,12 @@ typedef struct chiaki_discovery_thread_t
CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_thread_start(ChiakiDiscoveryThread *thread, ChiakiDiscovery *discovery, ChiakiDiscoveryCb cb, void *cb_user);
CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_thread_stop(ChiakiDiscoveryThread *thread);
/**
* Convenience function to send a wakeup packet
* @param discovery Discovery to send the packet on. May be NULL, in which case a new temporary Discovery will be created
*/
CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_wakeup(ChiakiLog *log, ChiakiDiscovery *discovery, const char *host, uint64_t user_credential);
#ifdef __cplusplus
}
#endif