|
void | oc_add_collection (oc_resource_t *collection) |
|
bool | oc_add_collection_v1 (oc_resource_t *collection) |
| Adds a collection to the list of collections. More...
|
|
bool | oc_check_if_collection (const oc_resource_t *resource) |
| Check if resource is a global collection. More...
|
|
void | oc_collection_add_link (oc_resource_t *collection, oc_link_t *link) |
| Adds the link to the collection. More...
|
|
bool | oc_collection_add_mandatory_rt (oc_resource_t *collection, const char *rt) |
| Add a mandatory Resource Type to a collection. More...
|
|
bool | oc_collection_add_supported_rt (oc_resource_t *collection, const char *rt) |
| Add a supported Resource Type to a collection. More...
|
|
oc_resource_t * | oc_collection_get_collections (void) |
| Gets all known collections. More...
|
|
oc_link_t * | oc_collection_get_links (oc_resource_t *collection) |
| Returns the list of links belonging to this collection. More...
|
|
void | oc_collection_remove_link (oc_resource_t *collection, const oc_link_t *link) |
| Removes a link from the collection. More...
|
|
bool | oc_collections_add_rt_factory (const char *rt, oc_resource_get_instance_t get_instance, oc_resource_free_instance_t free_instance) |
| adds the resource type factory More...
|
|
void | oc_delete_collection (oc_resource_t *collection) |
| Deletes the specified collection. More...
|
|
oc_collection_t * | oc_get_collection_by_uri (const char *uri_path, size_t uri_path_len, size_t device) |
| Find a collection in the global collection by its URI. More...
|
|
oc_link_t * | oc_get_link_by_uri (oc_collection_t *collection, const char *uri_path, size_t uri_path_len) |
| Get a link from a collection by its URI. More...
|
|
oc_resource_t * | oc_new_collection (const char *name, const char *uri, uint8_t num_resource_types, size_t device) |
| Creates a new empty collection. More...
|
|
void | oc_resource_set_properties_cbs (oc_resource_t *resource, oc_get_properties_cb_t get_properties, void *get_props_user_data, oc_set_properties_cb_t set_properties, void *set_props_user_data) |
| sets the callback properties for set properties and get properties More...
|
|