X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fprivate-query-executor.h;h=79b1f5f8fb8964fb8ef20adb77fd6b01632287ba;hp=348d30d4d221e59629b41fbe642a4c0eac856540;hb=43c59509042845f8d42c3e99ec74d45fa2dc0908;hpb=1cda4ff4025e4b3f7bd2a861baa51d2113c4cbf9 diff --git a/include/babeltrace2/graph/private-query-executor.h b/include/babeltrace2/graph/private-query-executor.h index 348d30d4..79b1f5f8 100644 --- a/include/babeltrace2/graph/private-query-executor.h +++ b/include/babeltrace2/graph/private-query-executor.h @@ -33,6 +33,63 @@ extern "C" { #endif +/*! +@defgroup api-priv-qexec Private query executor +@ingroup api-comp-cls-dev + +@brief + Private view of a \bt_qexec for a \bt_comp_cls + \ref api-comp-cls-dev-meth-query "query method". + +A private query executor is a private view, +from within a \bt_comp_cls +\ref api-comp-cls-dev-meth-query "query method", of a +\bt_qexec. + +A query method receives a private query executor as its +\bt_p{query_executor} parameter. + +As of \bt_name_version_min_maj, this module only offers the +bt_private_query_executor_as_query_executor_const() function to +\ref api-fund-c-typing "upcast" a private query executor to a +\c const query executor. You need this to get the query executor's +\ref api-qexec-prop-log-lvl "logging level". +*/ + +/*! @{ */ + +/*! +@name Type +@{ + +@typedef struct bt_private_query_executor bt_private_query_executor; + +@brief + Private query executor. + +@} +*/ + +/*! +@name Upcast +@{ +*/ + +/*! +@brief + \ref api-fund-c-typing "Upcasts" the private query executor + \bt_p{query_executor} to the public #bt_query_executor type. + +@param[in] query_executor + @parblock + Private query executor to upcast. + + Can be \c NULL. + @endparblock + +@returns + \bt_p{query_executor} as a public query executor. +*/ static inline const bt_query_executor * bt_private_query_executor_as_query_executor_const( @@ -41,6 +98,10 @@ bt_private_query_executor_as_query_executor_const( return __BT_UPCAST_CONST(bt_query_executor, query_executor); } +/*! @} */ + +/*! @} */ + #ifdef __cplusplus } #endif