|
static void | asyncDrop (void *context, const u8 *result, u32 resultlen, int retcode, const char *errmsg) |
|
static void | deleteAllCS (yContextSt *ctx) |
|
void | freeDevYdxInfos (int devYdx) |
|
int | handleNetNotification (HubSt *hub) |
|
void | initDevYdxInfos (int devYdx, yStrRef serial) |
|
static void | initializeAllCS (yContextSt *ctx) |
|
static void | logResult (void *context, const u8 *result, u32 resultlen, int retcode, const char *errmsg) |
|
static void | parseNetWpEntry (ENU_CONTEXT *enus) |
|
static fullAttrInfo * | parseSettings (const char *settings, int *count) |
|
static int | pingURLOnhub (HubSt *hubst, const char *request, int mstimeout, char *errmsg) |
|
static void | skipJsonArray (yJsonStateMachine *j) |
|
static void | skipJsonStruct (yJsonStateMachine *j) |
|
static void | ssdpEntryUpdate (const char *serial, const char *urlToRegister, const char *urlToUnregister) |
|
static void | unregisterNetDevice (yStrRef serialref) |
|
static void | unregisterNetHub (yUrlRef huburl) |
|
static int | wpSafeCheckOverwrite (yUrlRef registeredUrl, HubSt *hub, yUrlRef devUrl) |
|
void | wpSafeRegister (HubSt *hub, u8 devYdx, yStrRef serialref, yStrRef lnameref, yStrRef productref, u16 deviceid, yUrlRef devUrl, s8 beacon) |
|
void | wpSafeUnregister (yStrRef serialref) |
|
void | wpSafeUpdate (HubSt *hub, u8 devYdx, yStrRef serialref, yStrRef lnameref, yUrlRef devUrl, s8 beacon) |
|
static void | wpUpdateTCP (HubSt *hub, const char *serial, const char *name, u8 beacon) |
|
static HubSt * | yapiAllocHub (const char *url, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiCheckFirmware (const char *serial, const char *rev, const char *path, char *buffer, int buffersize, int *fullsize, char *errmsg) |
|
int YAPI_FUNCTION_EXPORT | yapiCheckLogicalName (const char *name) |
|
static int | yapiCheckLogicalName_internal (const char *name) |
|
void YAPI_FUNCTION_EXPORT | yapiFreeAPI (void) |
|
static void | yapiFreeAPI_internal (void) |
|
static void | yapiFreeHub (HubSt *hub) |
|
YAPI_FUNCTION_EXPORT void | yapiFreeMem (void *ptr) |
|
int YAPI_FUNCTION_EXPORT | yapiGetAllDevices (YAPI_DEVICE *buffer, int maxsize, int *neededsize, char *errmsg) |
|
static int | yapiGetAllDevices_internal (YAPI_DEVICE *buffer, int maxsize, int *neededsize, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetAllJsonKeys (const char *json_buffer, char *buffer, int buffersize, int *fullsize, char *errmsg) |
|
static YRETCODE | yapiGetAllJsonKeys_internal (const char *json_buffer, char *buffer, int buffersize, int *fullsize, char *errmsg) |
|
u16 YAPI_FUNCTION_EXPORT | yapiGetAPIVersion (const char **version, const char **apidate) |
|
static u16 | yapiGetAPIVersion_internal (const char **version, const char **apidate) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetBootloaders (char *buffer, int buffersize, int *fullsize, char *errmsg) |
|
static YRETCODE | yapiGetBootloaders_internal (char *buffer, int buffersize, int *fullsize, char *errmsg) |
|
YRETCODE | yapiGetBootloadersDevs (char *serials, unsigned int maxNbSerial, unsigned int *totalBootladers, char *errmsg) |
|
u32 | yapiGetCNonce (u32 nc) |
|
YAPI_DEVICE YAPI_FUNCTION_EXPORT | yapiGetDevice (const char *device_str, char *errmsg) |
|
static YAPI_DEVICE | yapiGetDevice_internal (const char *device_str, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetDeviceInfo (YAPI_DEVICE devdesc, yDeviceSt *infos, char *errmsg) |
|
static YRETCODE | yapiGetDeviceInfo_internal (YAPI_DEVICE devdesc, yDeviceSt *infos, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetDevicePath (YAPI_DEVICE devdesc, char *rootdevice, char *request, int requestsize, int *neededsize, char *errmsg) |
|
static YRETCODE | yapiGetDevicePath_internal (YAPI_DEVICE devdesc, char *rootdevice, char *request, int requestsize, int *neededsize, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetDevicePathEx (const char *serial, char *rootdevice, char *request, int requestsize, int *neededsize, char *errmsg) |
|
static YRETCODE | yapiGetDevicePathEx_internal (const char *serial, char *rootdevice, char *request, int requestsize, int *neededsize, char *errmsg) |
|
YAPI_FUNCTION YAPI_FUNCTION_EXPORT | yapiGetFunction (const char *class_str, const char *function_str, char *errmsg) |
|
static YAPI_FUNCTION | yapiGetFunction_internal (const char *class_str, const char *function_str, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetFunctionInfo (YAPI_FUNCTION fundesc, YAPI_DEVICE *devdesc, char *serial, char *funcId, char *funcName, char *funcVal, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetFunctionInfoEx (YAPI_FUNCTION fundesc, YAPI_DEVICE *devdesc, char *serial, char *funcId, char *baseType, char *funcName, char *funcVal, char *errmsg) |
|
static YRETCODE | yapiGetFunctionInfoEx_internal (YAPI_FUNCTION fundesc, YAPI_DEVICE *devdesc, char *serial, char *funcId, char *baseType, char *funcName, char *funcVal, char *errmsg) |
|
int YAPI_FUNCTION_EXPORT | yapiGetFunctionsByClass (const char *class_str, YAPI_FUNCTION prevfundesc, YAPI_FUNCTION *buffer, int maxsize, int *neededsize, char *errmsg) |
|
static int | yapiGetFunctionsByClass_internal (const char *class_str, YAPI_FUNCTION prevfundesc, YAPI_FUNCTION *buffer, int maxsize, int *neededsize, char *errmsg) |
|
int YAPI_FUNCTION_EXPORT | yapiGetFunctionsByDevice (YAPI_DEVICE devdesc, YAPI_FUNCTION prevfundesc, YAPI_FUNCTION *buffer, int maxsize, int *neededsize, char *errmsg) |
|
static int | yapiGetFunctionsByDevice_internal (YAPI_DEVICE devdesc, YAPI_FUNCTION prevfundesc, YAPI_FUNCTION *buffer, int maxsize, int *neededsize, char *errmsg) |
|
YAPI_FUNCTION_EXPORT void * | yapiGetMem (int size) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiGetSubdevices (const char *serial, char *buffer, int buffersize, int *fullsize, char *errmsg) |
|
static int | yapiGetSubdevices_internal (const char *serial, char *buffer, int buffersize, int *fullsize, char *errmsg) |
|
u64 YAPI_FUNCTION_EXPORT | yapiGetTickCount (void) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHandleEvents (char *errmsg) |
|
static YRETCODE | yapiHandleEvents_internal (char *errmsg) |
|
int YAPI_FUNCTION_EXPORT | yapiHTTPRequest (const char *device, const char *request, char *buffer, int buffsize, int *fullsize, char *errmsg) |
|
static int | yapiHTTPRequest_internal (const char *device, const char *request, char *buffer, int buffsize, int *fullsize, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHTTPRequestAsync (const char *device, const char *request, yapiRequestAsyncCallback callback, void *context, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHTTPRequestAsyncEx (const char *device, const char *request, int len, yapiRequestAsyncCallback callback, void *context, char *errmsg) |
|
static YRETCODE | yapiHTTPRequestAsyncEx_internal (int tcpchan, const char *device, const char *request, int len, yapiRequestAsyncCallback callback, void *context, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHTTPRequestAsyncOutOfBand (int channel, const char *device, const char *request, int requestsize, yapiRequestAsyncCallback callback, void *context, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHTTPRequestSyncDone (YIOHDL *iohdl, char *errmsg) |
|
YRETCODE | yapiHTTPRequestSyncDone_internal (YIOHDL *iohdl, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHTTPRequestSyncStart (YIOHDL *iohdl, const char *device, const char *request, char **reply, int *replysize, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHTTPRequestSyncStartEx (YIOHDL *iohdl, const char *device, const char *request, int requestsize, char **reply, int *replysize, char *errmsg) |
|
YRETCODE | yapiHTTPRequestSyncStartEx_internal (YIOHDL *iohdl, int tcpchan, const char *device, const char *request, int requestsize, char **reply, int *replysize, yapiRequestProgressCallback progress_cb, void *progress_ctx, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiHTTPRequestSyncStartOutOfBand (YIOHDL *iohdl, int channel, const char *device, const char *request, int requestsize, char **reply, int *replysize, yapiRequestProgressCallback progress_cb, void *progress_ctx, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiInitAPI (int detect_type, char *errmsg) |
|
static YRETCODE | yapiInitAPI_internal (int detect_type, char *errmsg) |
|
int YAPI_FUNCTION_EXPORT | yapiJsonDecodeString (const char *json_string, char *output) |
|
static int | yapiJsonDecodeString_internal (const char *json_string, char *output) |
|
int YAPI_FUNCTION_EXPORT | yapiJsonGetPath (const char *path, const char *json_data, int json_size, const char **result, char *errmsg) |
|
int | yapiJsonGetPath_internal (const char *path, const char *json_data, int json_size, int withHTTPheader, const char **output, char *errmsg) |
|
static const char * | yapiJsonValueParseArray (yJsonStateMachine *j, const char *path, int *result, char *errmsg) |
|
static const char * | yapiJsonValueParseStruct (yJsonStateMachine *j, const char *path, int *result, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiLockDeviceCallBack (char *errmsg) |
|
static YRETCODE | yapiLockDeviceCallBack_internal (char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiLockFunctionCallBack (char *errmsg) |
|
static YRETCODE | yapiLockFunctionCallBack_internal (char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiPreregisterHub (const char *url, char *errmsg) |
|
static YRETCODE | yapiPreregisterHub_internal (const char *url, char *errmsg) |
|
YRETCODE | yapiPullDeviceLog (const char *serial) |
|
YRETCODE | yapiPullDeviceLogEx (int devydx) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterDeviceArrivalCallback (yapiDeviceUpdateCallback arrivalCallback) |
|
static void | yapiRegisterDeviceArrivalCallback_internal (yapiDeviceUpdateCallback arrivalCallback) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterDeviceChangeCallback (yapiDeviceUpdateCallback changeCallback) |
|
static void | yapiRegisterDeviceChangeCallback_internal (yapiDeviceUpdateCallback changeCallback) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterDeviceLogCallback (yapiDeviceLogCallback logCallback) |
|
static void | yapiRegisterDeviceLogCallback_internal (yapiDeviceLogCallback logCallback) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterDeviceRemovalCallback (yapiDeviceUpdateCallback removalCallback) |
|
static void | yapiRegisterDeviceRemovalCallback_internal (yapiDeviceUpdateCallback removalCallback) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterFunctionUpdateCallback (yapiFunctionUpdateCallback updateCallback) |
|
static void | yapiRegisterFunctionUpdateCallback_internal (yapiFunctionUpdateCallback updateCallback) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiRegisterHub (const char *url, char *errmsg) |
|
static YRETCODE | yapiRegisterHub_internal (const char *url, char *errmsg) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterHubDiscoveryCallback (yapiHubDiscoveryCallback hubDiscoveryCallback) |
|
static void | yapiRegisterHubDiscoveryCallback_internal (yapiHubDiscoveryCallback hubDiscoveryCallback) |
|
static YRETCODE | yapiRegisterHubEx (const char *url, int checkacces, char *errmsg) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterLogFunction (yapiLogFunction logfun) |
|
static void | yapiRegisterLogFunction_internal (yapiLogFunction logfun) |
|
void | yapiRegisterRawNotificationCb (yRawNotificationCb callback) |
|
void | yapiRegisterRawReportCb (yRawReportCb callback) |
|
void | yapiRegisterRawReportV2Cb (yRawReportV2Cb callback) |
|
void YAPI_FUNCTION_EXPORT | yapiRegisterTimedReportCallback (yapiTimedReportCallback timedReportCallback) |
|
static void | yapiRegisterTimedReportCallback_internal (yapiTimedReportCallback timedReportCallback) |
|
YRETCODE | yapiRequestOpen (YIOHDL_internal *iohdl, int tcpchan, const char *device, const char *request, int reqlen, yapiRequestAsyncCallback callback, void *context, yapiRequestProgressCallback progress_cb, void *progress_ctx, char *errmsg) |
|
static int | yapiRequestOpenHTTP (YIOHDL_internal *iohdl, HubSt *hub, YAPI_DEVICE dev, const char *request, int reqlen, int wait_for_start, u64 mstimeout, yapiRequestAsyncCallback callback, void *context, char *errmsg) |
|
static int | yapiRequestOpenUSB (YIOHDL_internal *iohdl, HubSt *hub, YAPI_DEVICE dev, const char *request, int reqlen, u64 unused_timeout, yapiRequestAsyncCallback callback, void *context, char *errmsg) |
|
static int | yapiRequestOpenWS (YIOHDL_internal *iohdl, HubSt *hub, YAPI_DEVICE dev, int tcpchan, const char *request, int reqlen, u64 mstimeout, yapiRequestAsyncCallback callback, void *context, RequestProgress progress_cb, void *progress_ctx, char *errmsg) |
|
static int | yapiRequestWaitEndHTTP (YIOHDL_internal *iohdl, char **reply, int *replysize, char *errmsg) |
|
static int | yapiRequestWaitEndUSB (YIOHDL_internal *iohdl, char **reply, int *replysize, char *errmsg) |
|
static int | yapiRequestWaitEndWS (YIOHDL_internal *iohdl, char **reply, int *replysize, char *errmsg) |
|
void YAPI_FUNCTION_EXPORT | yapiSetTraceFile (const char *file) |
|
static void | yapiSetTraceFile_internal (const char *file) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiSleep (int ms_duration, char *errmsg) |
|
static YRETCODE | yapiSleep_internal (int ms_duration, char *errmsg) |
|
void YAPI_FUNCTION_EXPORT | yapiStartStopDeviceLogCallback (const char *serial, int start) |
|
static void | yapiStartStopDeviceLogCallback_internal (const char *serial, int start) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiTestHub (const char *url, int mstimeout, char *errmsg) |
|
static YRETCODE | yapiTestHub_internal (const char *url, int mstimeout, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiTriggerHubDiscovery (char *errmsg) |
|
static YRETCODE | yapiTriggerHubDiscovery_internal (char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiUnlockDeviceCallBack (char *errmsg) |
|
static YRETCODE | yapiUnlockDeviceCallBack_internal (char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiUnlockFunctionCallBack (char *errmsg) |
|
static YRETCODE | yapiUnlockFunctionCallBack_internal (char *errmsg) |
|
void YAPI_FUNCTION_EXPORT | yapiUnregisterHub (const char *url) |
|
static void | yapiUnregisterHub_internal (const char *url) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiUpdateDeviceList (u32 forceupdate, char *errmsg) |
|
static YRETCODE | yapiUpdateDeviceList_internal (u32 forceupdate, char *errmsg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiUpdateFirmware (const char *serial, const char *firmwarePath, const char *settings, int startUpdate, char *msg) |
|
YRETCODE YAPI_FUNCTION_EXPORT | yapiUpdateFirmwareEx (const char *serial, const char *firmwarePath, const char *settings, int force, int startUpdate, char *msg) |
|
static int | yEnuJson (ENU_CONTEXT *enus, yJsonStateMachine *j) |
|
void | yFunctionTimedUpdate (YAPI_FUNCTION fundescr, double deviceTime, const u8 *report, u32 len) |
|
void | yFunctionUpdate (YAPI_FUNCTION fundescr, const char *value) |
|
static void * | yhelper_thread (void *ctx) |
|
static int | yNetHubEnum (HubSt *hub, int forceupdate, char *errmsg) |
|
static int | yNetHubEnumEx (HubSt *hub, ENU_CONTEXT *enus, char *errmsg) |
|
static void | ypUpdateNet (ENU_CONTEXT *enus) |
|
static int | yTcpTrafficPending (void) |
|