IoTivity-Lite
oc_client_state.h File Reference
#include "messaging/coap/constants.h"
#include "oc_endpoint.h"
#include "oc_ri.h"
#include <stdbool.h>
#include "oc_blockwise.h"

Typedefs

typedef struct oc_client_cb_t oc_client_cb_t
 
typedef struct oc_client_handler_t oc_client_handler_t
 
typedef oc_discovery_flags_t(* oc_discovery_all_handler_t) (const char *, const char *, oc_string_array_t, oc_interface_mask_t, oc_endpoint_t *, oc_resource_properties_t, bool, void *)
 
typedef oc_discovery_flags_t(* oc_discovery_handler_t) (const char *, const char *, oc_string_array_t, oc_interface_mask_t, oc_endpoint_t *, oc_resource_properties_t, void *)
 
typedef void(* oc_response_handler_t) (oc_client_response_t *)
 

Enumerations

enum  oc_discovery_flags_t { OC_STOP_DISCOVERY = 0, OC_CONTINUE_DISCOVERY }
 
enum  oc_qos_t { HIGH_QOS = 0, LOW_QOS }
 

Functions

oc_client_cb_t * oc_ri_alloc_client_cb (const char *uri, oc_endpoint_t *endpoint, oc_method_t method, const char *query, oc_client_handler_t handler, oc_qos_t qos, void *user_data)
 
oc_client_cb_t * oc_ri_find_client_cb_by_mid (uint16_t mid)
 
oc_client_cb_t * oc_ri_find_client_cb_by_token (uint8_t *token, uint8_t token_len)
 
void oc_ri_free_client_cbs_by_endpoint (oc_endpoint_t *endpoint)
 
void oc_ri_free_client_cbs_by_mid (uint16_t mid)
 
oc_client_cb_t * oc_ri_get_client_cb (const char *uri, oc_endpoint_t *endpoint, oc_method_t method)
 
bool oc_ri_invoke_client_cb (void *response, oc_blockwise_state_t **response_state, oc_client_cb_t *cb, oc_endpoint_t *endpoint)
 
bool oc_ri_is_client_cb_valid (oc_client_cb_t *client_cb)
 
oc_discovery_flags_t oc_ri_process_discovery_payload (uint8_t *payload, int len, oc_client_handler_t handler, oc_endpoint_t *endpoint, void *user_data)