90 const char *sid,
const char *pid)
159 va_start(vp, adapter);
289 va_start(vp, device);
411 va_start(vp, service);
431 va_start(vp, service);
576 va_start(vp, parameter);
714 (*adapter_id) = NULL;
749 (*service_id) = NULL;
792 (*service_id) = NULL;
814 (*service_id) = NULL;
836 (*parameter_id) = NULL;
1018 *parameter_id = NULL;
1028 *parameter_id = NULL;
hpd_error_t hpd_device_id_copy(hpd_device_id_t **dst, const hpd_device_id_t *src)
hpd_error_t hpd_first_service(hpd_t *hpd, hpd_service_id_t **service_id)
hpd_error_t discovery_set_service_attr(hpd_service_t *service, const char *key, const char *val)
hpd_error_t discovery_get_parameter_attr(hpd_parameter_t *parameter, const char *key, const char **val)
hpd_error_t discovery_get_parameter_device(const hpd_parameter_id_t *pid, hpd_device_id_t **did)
void(* hpd_free_f)(void *data)
[hpd_action_f]
hpd_error_t discovery_next_adapter_device(hpd_device_t **device)
#define LOG_RETURN_E_NULL()
hpd_error_t discovery_set_aid(hpd_adapter_id_t *id, hpd_t *hpd, const char *aid)
HPD_E_ALLOC: id might be partially updated.
hpd_error_t hpd_parameter_get_hpd(const hpd_parameter_id_t *pid, hpd_t **hpd)
hpd_error_t discovery_set_service_actions_v(hpd_service_t *service, va_list vp)
hpd_error_t hpd_service_id_copy(hpd_service_id_t **dst, const hpd_service_id_t *src)
hpd_error_t discovery_free_service(hpd_service_t *service)
hpd_error_t discovery_free_adapter(hpd_adapter_t *adapter)
hpd_error_t discovery_find_service(const hpd_service_id_t *id, hpd_service_t **service)
hpd_error_t hpd_device_alloc(hpd_device_t **device, const char *id)
A note on reusing IDs: An other module or remote client may have outstanding references to the old ID...
hpd_error_t hpd_device_get_id(const hpd_device_id_t *did, const char **id)
[hpd_adapter_t functions]
hpd_error_t hpd_device_set_data(hpd_device_t *device, void *data, hpd_free_f on_free)
hpd_error_t discovery_alloc_device(hpd_device_t **device, const char *id)
hpd_error_t discovery_set_adapter_data(hpd_adapter_t *adapter, void *data, hpd_free_f on_free)
hpd_error_t discovery_next_device_attr(hpd_pair_t **pair)
hpd_error_t discovery_attach_service(hpd_device_t *device, hpd_service_t *service)
hpd_error_t discovery_set_service_data(hpd_service_t *service, void *data, hpd_free_f on_free)
hpd_error_t hpd_device_get_data(const hpd_device_id_t *id, void **data)
hpd_error_t discovery_free_device(hpd_device_t *device)
hpd_error_t hpd_service_alloc(hpd_service_t **service, const char *id)
[hpd_device_t functions]
hpd_error_t hpd_action_get_method(const hpd_action_t *action, hpd_method_t *method)
[model foreach loops]
hpd_error_t hpd_adapter_get_data(const hpd_adapter_id_t *id, void **data)
hpd_error_t discovery_get_adapter_hpd(const hpd_adapter_id_t *aid, hpd_t **hpd)
hpd_error_t discovery_first_hpd_adapter(hpd_t *hpd, hpd_adapter_t **adapter)
hpd_error_t discovery_copy_sid(hpd_service_id_t **dst, const hpd_service_id_t *src)
hpd_error_t hpd_adapter_set_attr(hpd_adapter_t *adapter, const char *key, const char *val)
hpd_error_t discovery_set_adapter_attr(hpd_adapter_t *adapter, const char *key, const char *val)
hpd_error_t discovery_get_device_hpd(const hpd_device_id_t *did, hpd_t **hpd)
hpd_error_t hpd_service_get_id(const hpd_service_id_t *sid, const char **id)
[hpd_device_t functions]
hpd_error_t hpd_service_next_attr(hpd_pair_t **pair)
hpd_error_t discovery_first_adapter_attr(hpd_adapter_t *adapter, hpd_pair_t **pair)
hpd_error_t hpd_service_has_action(const hpd_service_id_t *id, const hpd_method_t method, hpd_bool_t *boolean)
hpd_error_t hpd_parameter_get_attrs(const hpd_parameter_id_t *id,...)
hpd_error_t discovery_get_adapter_id(hpd_adapter_t *adapter, const char **id)
hpd_error_t discovery_alloc_sid(hpd_service_id_t **id, hpd_t *hpd, const char *aid, const char *did, const char *sid)
hpd_error_t hpd_adapter_id_free(hpd_adapter_id_t *id)
#define LOG_RETURN_HPD_STOPPED()
hpd_bool_t discovery_is_service_id_unique(hpd_device_t *device, hpd_service_t *service)
hpd_error_t hpd_next_adapter(hpd_adapter_id_t **adapter_id)
hpd_error_t discovery_detach_device(hpd_device_t *device)
hpd_error_t hpd_next_service(hpd_service_id_t **service_id)
hpd_error_t hpd_service_get_hpd(const hpd_service_id_t *sid, hpd_t **hpd)
hpd_error_t hpd_service_first_parameter(const hpd_service_id_t *service_id, hpd_parameter_id_t **parameter_id)
hpd_error_t discovery_get_device_attr(hpd_device_t *device, const char *key, const char **val)
hpd_error_t hpd_adapter_id_copy(hpd_adapter_id_t **dst, const hpd_adapter_id_t *src)
hpd_error_t hpd_adapter_alloc(hpd_adapter_t **adapter, const char *id)
[hpd_adapter_t functions]
hpd_error_t hpd_device_id_free(hpd_device_id_t *id)
hpd_error_t hpd_service_get_attrs(const hpd_service_id_t *id,...)
hpd_error_t discovery_free_parameter(hpd_parameter_t *parameter)
hpd_error_t discovery_get_device_adapter(const hpd_device_id_t *did, hpd_adapter_id_t **aid)
hpd_error_t hpd_parameter_set_attrs(hpd_parameter_t *parameter,...)
hpd_error_t hpd_device_attach(const hpd_adapter_id_t *id, hpd_device_t *device)
hpd_error_t discovery_alloc_service(hpd_service_t **service, const char *id)
hpd_error_t hpd_service_free(hpd_service_t *service)
hpd_error_t hpd_service_set_attr(hpd_service_t *service, const char *key, const char *val)
hpd_error_t discovery_free_did(hpd_device_id_t *id)
hpd_error_t discovery_next_adapter_service(hpd_service_t **service)
hpd_error_t discovery_get_adapter_attrs_v(hpd_adapter_t *adapter, va_list vp)
hpd_error_t discovery_set_pid(hpd_parameter_id_t *id, hpd_t *hpd, const char *aid, const char *did, const char *sid, const char *pid)
HPD_E_ALLOC: id might be partially updated.
hpd_error_t discovery_set_service_action(hpd_service_t *service, const hpd_method_t method, hpd_action_f action)
hpd_error_t hpd_service_get_device(const hpd_service_id_t *sid, hpd_device_id_t **did)
hpd_error_t discovery_set_parameter_attr(hpd_parameter_t *parameter, const char *key, const char *val)
hpd_bool_t discovery_is_parameter_id_unique(hpd_service_t *service, hpd_parameter_t *parameter)
hpd_error_t hpd_device_get_attr(const hpd_device_id_t *id, const char *key, const char **val)
hpd_error_t hpd_device_set_attr(hpd_device_t *device, const char *key, const char *val)
hpd_error_t hpd_parameter_detach(const hpd_parameter_id_t *id, hpd_parameter_t **parameter)
hpd_error_t discovery_next_hpd_service(hpd_service_t **service)
hpd_error_t hpd_service_detach(const hpd_service_id_t *id, hpd_service_t **service)
hpd_error_t discovery_next_action_in_service(hpd_action_t **action)
hpd_error_t discovery_find_parameter(const hpd_parameter_id_t *id, hpd_parameter_t **parameter)
hpd_error_t discovery_first_device_attr(hpd_device_t *device, hpd_pair_t **pair)
hpd_error_t hpd_service_get_data(const hpd_service_id_t *id, void **data)
hpd_error_t hpd_adapter_set_attrs(hpd_adapter_t *adapter,...)
hpd_error_t discovery_next_hpd_device(hpd_device_t **device)
hpd_bool_t discovery_has_service_action(hpd_service_t *service, const hpd_method_t method)
hpd_error_t discovery_alloc_parameter(hpd_parameter_t **parameter, const char *id)
hpd_error_t discovery_first_action_in_service(hpd_service_t *service, hpd_action_t **action)
hpd_error_t hpd_device_detach(const hpd_device_id_t *id, hpd_device_t **device)
hpd_error_t discovery_set_adapter_attrs_v(hpd_adapter_t *adapter, va_list vp)
hpd_error_t discovery_alloc_aid(hpd_adapter_id_t **id, hpd_t *hpd, const char *aid)
hpd_error_t hpd_first_adapter(hpd_t *hpd, hpd_adapter_id_t **adapter_id)
hpd_error_t hpd_parameter_id_copy(hpd_parameter_id_t **dst, const hpd_parameter_id_t *src)
hpd_error_t hpd_first_device(hpd_t *hpd, hpd_device_id_t **device_id)
hpd_error_t hpd_device_set_attrs(hpd_device_t *device,...)
hpd_error_t hpd_service_get_attr(const hpd_service_id_t *id, const char *key, const char **val)
hpd_error_t discovery_get_parameter_adapter(const hpd_parameter_id_t *pid, hpd_adapter_id_t **aid)
hpd_error_t hpd_device_first_attr(const hpd_device_id_t *id, hpd_pair_t **pair)
hpd_error_t discovery_set_device_attr(hpd_device_t *device, const char *key, const char *val)
hpd_error_t hpd_adapter_get_attrs(const hpd_adapter_id_t *id,...)
hpd_error_t hpd_device_get_attrs(const hpd_device_id_t *id,...)
hpd_error_t hpd_service_next_parameter(hpd_parameter_id_t **parameter_id)
hpd_error_t discovery_get_service_hpd(const hpd_service_id_t *sid, hpd_t **hpd)
hpd_error_t discovery_get_parameter_id(hpd_parameter_t *parameter, const char **id)
hpd_error_t discovery_alloc_did(hpd_device_id_t **id, hpd_t *hpd, const char *aid, const char *did)
hpd_configuration_t * configuration
hpd_error_t discovery_attach_parameter(hpd_service_t *service, hpd_parameter_t *parameter)
hpd_error_t hpd_service_get_adapter(const hpd_service_id_t *sid, hpd_adapter_id_t **aid)
hpd_error_t discovery_set_device_data(hpd_device_t *device, void *data, hpd_free_f on_free)
hpd_error_t discovery_copy_did(hpd_device_id_t **dst, const hpd_device_id_t *src)
hpd_error_t hpd_adapter_next_device(hpd_device_id_t **device_id)
hpd_error_t hpd_adapter_set_data(hpd_adapter_t *adapter, void *data, hpd_free_f on_free)
hpd_error_t hpd_service_id_free(hpd_service_id_t *id)
hpd_error_t discovery_attach_device(hpd_adapter_t *adapter, hpd_device_t *device)
hpd_error_t discovery_next_device_service(hpd_service_t **service)
enum hpd_error hpd_error_t
hpd_error_t discovery_set_sid(hpd_service_id_t *id, hpd_t *hpd, const char *aid, const char *did, const char *sid)
HPD_E_ALLOC: id might be partially updated.
hpd_error_t hpd_parameter_free(hpd_parameter_t *parameter)
hpd_error_t hpd_adapter_free(hpd_adapter_t *adapter)
hpd_error_t discovery_get_service_device(const hpd_service_id_t *sid, hpd_device_id_t **did)
hpd_error_t hpd_adapter_detach(const hpd_adapter_id_t *id, hpd_adapter_t **adapter)
hpd_error_t hpd_service_attach(hpd_device_t *device, hpd_service_t *service)
hpd_error_t discovery_get_parameter_hpd(const hpd_parameter_id_t *pid, hpd_t **hpd)
hpd_error_t hpd_parameter_get_service(const hpd_parameter_id_t *pid, hpd_service_id_t **sid)
#define LOG_RETURN(E, FMT,...)
hpd_error_t hpd_device_get_adapter(const hpd_device_id_t *did, hpd_adapter_id_t **aid)
hpd_error_t discovery_find_device(const hpd_device_id_t *id, hpd_device_t **device)
hpd_error_t discovery_first_adapter_device(hpd_adapter_t *adapter, hpd_device_t **device)
hpd_error_t discovery_get_parameter_attrs_v(hpd_parameter_t *parameter, va_list vp)
hpd_error_t hpd_adapter_get_hpd(const hpd_adapter_id_t *aid, hpd_t **hpd)
[hpd_pair_t functions]
hpd_bool_t discovery_is_device_id_unique(hpd_adapter_t *adapter, hpd_device_t *device)
hpd_error_t hpd_device_id_alloc(hpd_device_id_t **id, hpd_t *hpd, const char *aid, const char *did)
hpd_error_t hpd_service_set_action(hpd_service_t *service, const hpd_method_t method, hpd_action_f action)
hpd_error_t discovery_set_service_attrs_v(hpd_service_t *service, va_list vp)
hpd_error_t discovery_find_adapter(const hpd_adapter_id_t *id, hpd_adapter_t **adapter)
hpd_error_t discovery_get_service_id(hpd_service_t *service, const char **id)
hpd_error_t discovery_get_device_data(hpd_device_t *device, void **data)
hpd_error_t discovery_detach_parameter(hpd_parameter_t *parameter)
hpd_bool_t discovery_is_adapter_id_unique(hpd_t *hpd, hpd_adapter_t *adapter)
hpd_error_t hpd_adapter_first_device(const hpd_adapter_id_t *adapter_id, hpd_device_id_t **device_id)
hpd_error_t discovery_set_parameter_attrs_v(hpd_parameter_t *parameter, va_list vp)
hpd_status_t(* hpd_action_f)(void *data, hpd_request_t *req)
[hpd_module_def_t functions]
hpd_error_t discovery_get_parameter_service(const hpd_parameter_id_t *pid, hpd_service_id_t **sid)
hpd_error_t discovery_alloc_adapter(hpd_adapter_t **adapter, const char *id)
hpd_error_t hpd_adapter_id_alloc(hpd_adapter_id_t **id, hpd_t *hpd, const char *aid)
[log functions]
hpd_error_t hpd_adapter_first_service(const hpd_adapter_id_t *adapter_id, hpd_service_id_t **service_id)
hpd_error_t discovery_get_adapter_data(hpd_adapter_t *adapter, void **data)
hpd_error_t hpd_device_next_attr(hpd_pair_t **pair)
hpd_error_t discovery_detach_service(hpd_service_t *service)
hpd_error_t hpd_next_device(hpd_device_id_t **device_id)
hpd_error_t discovery_first_hpd_device(hpd_t *hpd, hpd_device_t **device)
hpd_error_t discovery_free_pid(hpd_parameter_id_t *id)
hpd_error_t discovery_copy_pid(hpd_parameter_id_t **dst, const hpd_parameter_id_t *src)
hpd_error_t discovery_free_aid(hpd_adapter_id_t *id)
hpd_error_t discovery_next_parameter_attr(hpd_pair_t **pair)
hpd_error_t hpd_service_set_attrs(hpd_service_t *service,...)
hpd_error_t discovery_set_did(hpd_device_id_t *id, hpd_t *hpd, const char *aid, const char *did)
HPD_E_ALLOC: id might be partially updated.
hpd_error_t hpd_parameter_alloc(hpd_parameter_t **parameter, const char *id)
[hpd_service_t functions]
hpd_error_t discovery_first_service_attr(hpd_service_t *service, hpd_pair_t **pair)
hpd_error_t discovery_get_service_attr(hpd_service_t *service, const char *key, const char **val)
hpd_error_t hpd_adapter_get_id(const hpd_adapter_id_t *aid, const char **id)
[id_t functions]
hpd_error_t discovery_alloc_pid(hpd_parameter_id_t **id, hpd_t *hpd, const char *aid, const char *did, const char *sid, const char *pid)
hpd_error_t hpd_adapter_first_attr(const hpd_adapter_id_t *id, hpd_pair_t **pair)
hpd_error_t hpd_parameter_get_id(const hpd_parameter_id_t *pid, const char **id)
[hpd_service_t functions]
hpd_error_t discovery_set_device_attrs_v(hpd_device_t *device, va_list vp)
hpd_error_t hpd_service_id_alloc(hpd_service_id_t **id, hpd_t *hpd, const char *aid, const char *did, const char *sid)
hpd_error_t discovery_next_hpd_adapter(hpd_adapter_t **adapter)
hpd_error_t hpd_service_set_actions(hpd_service_t *service,...)
hpd_error_t hpd_parameter_set_attr(hpd_parameter_t *parameter, const char *key, const char *val)
hpd_error_t hpd_service_first_action(const hpd_service_id_t *id, hpd_action_t **action)
hpd_error_t discovery_first_service_parameter(hpd_service_t *service, hpd_parameter_t **parameter)
hpd_error_t hpd_parameter_first_attr(const hpd_parameter_id_t *id, hpd_pair_t **pair)
hpd_error_t discovery_attach_adapter(hpd_t *hpd, hpd_adapter_t *adapter)
hpd_error_t hpd_parameter_id_free(hpd_parameter_id_t *id)
hpd_error_t hpd_parameter_next_attr(hpd_pair_t **pair)
hpd_error_t discovery_get_adapter_attr(hpd_adapter_t *adapter, const char *key, const char **val)
hpd_configuration_t * configuration
hpd_error_t discovery_first_hpd_service(hpd_t *hpd, hpd_service_t **service)
hpd_error_t hpd_adapter_attach(hpd_t *hpd, hpd_adapter_t *adapter)
hpd_error_t discovery_free_sid(hpd_service_id_t *id)
hpd_error_t discovery_first_parameter_attr(hpd_parameter_t *parameter, hpd_pair_t **pair)
hpd_error_t discovery_first_adapter_service(hpd_adapter_t *adapter, hpd_service_t **service)
hpd_error_t discovery_get_service_attrs_v(hpd_service_t *service, va_list vp)
hpd_error_t discovery_get_device_attrs_v(hpd_device_t *device, va_list vp)
hpd_error_t discovery_get_device_id(hpd_device_t *device, const char **id)
hpd_error_t discovery_next_service_attr(hpd_pair_t **pair)
hpd_error_t discovery_first_device_service(const hpd_device_t *device, hpd_service_t **service)
hpd_error_t hpd_device_next_service(hpd_service_id_t **service_id)
hpd_error_t hpd_parameter_attach(hpd_service_t *service, hpd_parameter_t *parameter)
hpd_error_t discovery_copy_aid(hpd_adapter_id_t **dst, const hpd_adapter_id_t *src)
hpd_error_t hpd_device_free(hpd_device_t *device)
hpd_error_t hpd_device_get_hpd(const hpd_device_id_t *did, hpd_t **hpd)
enum hpd_method hpd_method_t
[hpd_log_level_t]
hpd_error_t hpd_parameter_get_attr(const hpd_parameter_id_t *id, const char *key, const char **val)
hpd_error_t hpd_parameter_id_alloc(hpd_parameter_id_t **id, hpd_t *hpd, const char *aid, const char *did, const char *sid, const char *pid)
hpd_error_t hpd_adapter_next_attr(hpd_pair_t **pair)
hpd_error_t discovery_get_service_data(hpd_service_t *service, void **data)
hpd_error_t hpd_device_first_service(const hpd_device_id_t *device_id, hpd_service_id_t **service_id)
hpd_error_t hpd_adapter_get_attr(const hpd_adapter_id_t *id, const char *key, const char **val)
hpd_error_t hpd_parameter_get_device(const hpd_parameter_id_t *pid, hpd_device_id_t **did)
hpd_error_t hpd_service_first_attr(const hpd_service_id_t *id, hpd_pair_t **pair)
hpd_error_t discovery_get_action_method(const hpd_action_t *action, hpd_method_t *method)
hpd_error_t discovery_detach_adapter(hpd_adapter_t *adapter)
hpd_error_t discovery_next_service_parameter(hpd_parameter_t **parameter)
hpd_error_t hpd_service_next_action(hpd_action_t **action)
hpd_error_t discovery_next_adapter_attr(hpd_pair_t **pair)
hpd_error_t hpd_adapter_next_service(hpd_service_id_t **service_id)
hpd_error_t discovery_get_service_adapter(const hpd_service_id_t *sid, hpd_adapter_id_t **aid)
hpd_error_t hpd_parameter_get_adapter(const hpd_parameter_id_t *pid, hpd_adapter_id_t **aid)
hpd_error_t hpd_service_set_data(hpd_service_t *service, void *data, hpd_free_f on_free)