mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-25 03:30:03 +01:00
module-avb: milan: introducing direct reply calls
This commit is contained in:
parent
57e589f2e1
commit
198f4a92f5
1 changed files with 42 additions and 0 deletions
|
|
@ -30,37 +30,79 @@ static inline int reply_status(struct aecp *aecp, int status, const void *m, int
|
||||||
|
|
||||||
static inline int reply_entity_locked(struct aecp *aecp, const void *m, int len)
|
static inline int reply_entity_locked(struct aecp *aecp, const void *m, int len)
|
||||||
{
|
{
|
||||||
|
pw_log_warn("reply entity locked");
|
||||||
return reply_status(aecp, AVB_AECP_AEM_STATUS_ENTITY_LOCKED, m, len);
|
return reply_status(aecp, AVB_AECP_AEM_STATUS_ENTITY_LOCKED, m, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \brief The function is be directly hooked with the cmd_info structure */
|
||||||
|
static inline int direct_reply_entiy_locked(struct aecp *aecp, int64_t now,
|
||||||
|
const void *m, int len)
|
||||||
|
{
|
||||||
|
return reply_entity_locked(aecp, m, len);
|
||||||
|
}
|
||||||
|
|
||||||
static inline int reply_not_implemented(struct aecp *aecp, const void *m, int len)
|
static inline int reply_not_implemented(struct aecp *aecp, const void *m, int len)
|
||||||
{
|
{
|
||||||
pw_log_warn("reply not implementing");
|
pw_log_warn("reply not implementing");
|
||||||
return reply_status(aecp, AVB_AECP_AEM_STATUS_NOT_IMPLEMENTED, m, len);
|
return reply_status(aecp, AVB_AECP_AEM_STATUS_NOT_IMPLEMENTED, m, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \brief The function is be directly hooked with the cmd_info structure */
|
||||||
|
static inline int direct_reply_not_implemented(struct aecp *aecp, int64_t now,
|
||||||
|
const void *m, int len)
|
||||||
|
{
|
||||||
|
return reply_not_implemented(aecp, m, len);
|
||||||
|
}
|
||||||
|
|
||||||
static inline int reply_not_supported(struct aecp *aecp, const void *m, int len)
|
static inline int reply_not_supported(struct aecp *aecp, const void *m, int len)
|
||||||
{
|
{
|
||||||
pw_log_warn("reply not supported");
|
pw_log_warn("reply not supported");
|
||||||
return reply_status(aecp, AVB_AECP_AEM_STATUS_NOT_SUPPORTED, m, len);
|
return reply_status(aecp, AVB_AECP_AEM_STATUS_NOT_SUPPORTED, m, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \brief The function is be directly hooked with the cmd_info structure */
|
||||||
|
static inline int direct_reply_not_supported(struct aecp *aecp, int64_t now,
|
||||||
|
const void *m, int len)
|
||||||
|
{
|
||||||
|
return reply_not_supported(aecp, m, len);
|
||||||
|
}
|
||||||
|
|
||||||
static inline int reply_no_resources(struct aecp *aecp, const void *m, int len)
|
static inline int reply_no_resources(struct aecp *aecp, const void *m, int len)
|
||||||
{
|
{
|
||||||
pw_log_warn("reply no resources");
|
pw_log_warn("reply no resources");
|
||||||
return reply_status(aecp, AVB_AECP_AEM_STATUS_NO_RESOURCES, m, len);
|
return reply_status(aecp, AVB_AECP_AEM_STATUS_NO_RESOURCES, m, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \brief The function is be directly hooked with the cmd_info structure */
|
||||||
|
static inline int direct_reply_no_resources(struct aecp *aecp, int64_t now,
|
||||||
|
const void *m, int len)
|
||||||
|
{
|
||||||
|
return reply_no_resources(aecp, m, len);
|
||||||
|
}
|
||||||
|
|
||||||
static inline int reply_bad_arguments(struct aecp *aecp, const void *m, int len)
|
static inline int reply_bad_arguments(struct aecp *aecp, const void *m, int len)
|
||||||
{
|
{
|
||||||
pw_log_warn("reply bad arguments");
|
pw_log_warn("reply bad arguments");
|
||||||
return reply_status(aecp, AVB_AECP_AEM_STATUS_BAD_ARGUMENTS, m, len);
|
return reply_status(aecp, AVB_AECP_AEM_STATUS_BAD_ARGUMENTS, m, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \brief The function is be directly hooked with the cmd_info structure */
|
||||||
|
static inline int direct_reply_bad_arguments(struct aecp *aecp, int64_t now,
|
||||||
|
const void *m, int len)
|
||||||
|
{
|
||||||
|
return reply_bad_arguments(aecp, m, len);
|
||||||
|
}
|
||||||
|
|
||||||
static inline int reply_success(struct aecp *aecp, const void *m, int len)
|
static inline int reply_success(struct aecp *aecp, const void *m, int len)
|
||||||
{
|
{
|
||||||
return reply_status(aecp, AVB_AECP_AEM_STATUS_SUCCESS, m, len);
|
return reply_status(aecp, AVB_AECP_AEM_STATUS_SUCCESS, m, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \brief The function is be directly hooked with the cmd_info structure */
|
||||||
|
static inline int direct_reply_success(struct aecp *aecp, int64_t now,
|
||||||
|
const void *m, int len)
|
||||||
|
{
|
||||||
|
return reply_success(aecp, m, len);
|
||||||
|
}
|
||||||
|
|
||||||
#endif //__AVB_AECP_AEM_HELPERS_H__
|
#endif //__AVB_AECP_AEM_HELPERS_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue