@@ -19,32 +19,32 @@ extern "C" {
19
19
///
20
20
/// @brief Get value of a specified attribute at the given name.
21
21
/// @param name name of an attribute to be retrieved
22
- /// @param ctx pointer to the pool or the provider
23
22
/// @param arg [out] pointer to the variable where the value will be stored
24
23
/// @param size size of the value, depends on the context
24
+ /// @param ... additional arguments that can be passed to the callback
25
25
/// @return UMF_RESULT_SUCCESS on success or UMF_RESULT_ERROR_UNKNOWN on failure.
26
26
///
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 , ... );
28
28
29
29
///
30
30
/// @brief Set value of a specified attribute at the given name.
31
31
/// @param name name of an attribute to be set
32
- /// @param ctx pointer to the pool or the provider, NULL for the 'default' path
33
32
/// @param arg [in] pointer to the value that will be set
34
33
/// @param size [in] size of the value, depends on the context
34
+ /// @param ... additional arguments that can be passed to the callback
35
35
/// @return UMF_RESULT_SUCCESS on success or UMF_RESULT_ERROR_UNKNOWN on failure.
36
36
///
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 , ... );
38
38
39
39
///
40
40
/// @brief Execute callback related with the specified attribute.
41
41
/// @param name name of an attribute to be executed
42
- /// @param ctx pointer to the pool or the provider
43
42
/// @param arg [in/out] pointer to the value, can be used as an input or output
44
43
/// @param size [in] size of the value, depends on the context
44
+ /// @param ... additional arguments that can be passed to the callback
45
45
/// @return UMF_RESULT_SUCCESS on success or UMF_RESULT_ERROR_UNKNOWN on failure.
46
46
///
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 , ... );
48
48
49
49
#ifdef __cplusplus
50
50
}
0 commit comments