@@ -19,32 +19,32 @@ extern "C" {
1919///
2020/// @brief Get value of a specified attribute at the given name.
2121/// @param name name of an attribute to be retrieved
22- /// @param ctx pointer to the pool or the provider
2322/// @param arg [out] pointer to the variable where the value will be stored
2423/// @param size size of the value, depends on the context
24+ /// @param ... additional arguments that can be passed to the callback
2525/// @return UMF_RESULT_SUCCESS on success or UMF_RESULT_ERROR_UNKNOWN on failure.
2626///
27- umf_result_t umfCtlGet (const char * name , void * ctx , void * arg , size_t size );
27+ umf_result_t umfCtlGet (const char * name , void * arg , size_t size , ... );
2828
2929///
3030/// @brief Set value of a specified attribute at the given name.
3131/// @param name name of an attribute to be set
32- /// @param ctx pointer to the pool or the provider, NULL for the 'default' path
3332/// @param arg [in] pointer to the value that will be set
3433/// @param size [in] size of the value, depends on the context
34+ /// @param ... additional arguments that can be passed to the callback
3535/// @return UMF_RESULT_SUCCESS on success or UMF_RESULT_ERROR_UNKNOWN on failure.
3636///
37- umf_result_t umfCtlSet (const char * name , void * ctx , void * arg , size_t size );
37+ umf_result_t umfCtlSet (const char * name , void * arg , size_t size , ... );
3838
3939///
4040/// @brief Execute callback related with the specified attribute.
4141/// @param name name of an attribute to be executed
42- /// @param ctx pointer to the pool or the provider
4342/// @param arg [in/out] pointer to the value, can be used as an input or output
4443/// @param size [in] size of the value, depends on the context
44+ /// @param ... additional arguments that can be passed to the callback
4545/// @return UMF_RESULT_SUCCESS on success or UMF_RESULT_ERROR_UNKNOWN on failure.
4646///
47- umf_result_t umfCtlExec (const char * name , void * ctx , void * arg , size_t size );
47+ umf_result_t umfCtlExec (const char * name , void * arg , size_t size , ... );
4848
4949#ifdef __cplusplus
5050}
0 commit comments