#include <yocto_api.h>
Public Member Functions | |
| void | clearCache (bool clearSubpath) |
| YRETCODE | getFunctions (vector< YFUN_DESCR > **functions, string &errmsg) |
| string | getHubSerial (void) |
| YRETCODE | HTTPRequest (int channel, const string &request, string &buffer, yapiRequestProgressCallback progress_cb, void *progress_ctx, string &errmsg) |
| YRETCODE | HTTPRequestAsync (int channel, const string &request, HTTPRequestCallback callback, void *context, string &errmsg) |
| YRETCODE | requestAPI (YJSONObject *&apires, string &errmsg) |
Static Public Member Functions | |
| static void | ClearCache () |
| static YDevice * | getDevice (YDEV_DESCR devdescr) |
Private Member Functions | |
| YRETCODE | HTTPRequest_unsafe (int channel, const string &request, string &buffer, yapiRequestProgressCallback progress_cb, void *progress_ctx, string &errmsg) |
| YRETCODE | HTTPRequestPrepare (const string &request, string &fullrequest, char *errbuff) |
| YDevice (YDEV_DESCR devdesc) | |
| ~YDevice () | |
Private Attributes | |
| YJSONObject * | _cacheJson |
| u64 | _cacheStamp |
| YDEV_DESCR | _devdescr |
| vector< YFUN_DESCR > | _functions |
| yCRITICAL_SECTION | _lock |
| char | _rootdevice [YOCTO_SERIAL_LEN] |
| char * | _subpath |
Static Private Attributes | |
| static vector< YDevice * > | _devCache |
Definition at line 1502 of file yocto_api.h.
|
private |
Definition at line 3556 of file yocto_api.cpp.
|
private |
Definition at line 3561 of file yocto_api.cpp.
|
static |
Definition at line 3567 of file yocto_api.cpp.
| void YDevice::clearCache | ( | bool | clearSubpath | ) |
Definition at line 3779 of file yocto_api.cpp.
|
static |
Definition at line 3577 of file yocto_api.cpp.
| YRETCODE YDevice::getFunctions | ( | vector< YFUN_DESCR > ** | functions, |
| string & | errmsg | ||
| ) |
Definition at line 3796 of file yocto_api.cpp.
| string YDevice::getHubSerial | ( | void | ) |
| YRETCODE YDevice::HTTPRequest | ( | int | channel, |
| const string & | request, | ||
| string & | buffer, | ||
| yapiRequestProgressCallback | progress_cb, | ||
| void * | progress_ctx, | ||
| string & | errmsg | ||
| ) |
Definition at line 3665 of file yocto_api.cpp.
|
private |
Definition at line 3618 of file yocto_api.cpp.
| YRETCODE YDevice::HTTPRequestAsync | ( | int | channel, |
| const string & | request, | ||
| HTTPRequestCallback | callback, | ||
| void * | context, | ||
| string & | errmsg | ||
| ) |
Definition at line 3649 of file yocto_api.cpp.
|
private |
Definition at line 3597 of file yocto_api.cpp.
| YRETCODE YDevice::requestAPI | ( | YJSONObject *& | apires, |
| string & | errmsg | ||
| ) |
Definition at line 3686 of file yocto_api.cpp.
|
private |
Definition at line 1511 of file yocto_api.h.
|
private |
Definition at line 1510 of file yocto_api.h.
|
staticprivate |
Definition at line 1506 of file yocto_api.h.
|
private |
Definition at line 1509 of file yocto_api.h.
|
private |
Definition at line 1512 of file yocto_api.h.
|
private |
Definition at line 1515 of file yocto_api.h.
|
private |
Definition at line 1513 of file yocto_api.h.
|
private |
Definition at line 1514 of file yocto_api.h.