|
yrmcds_error yrmcds_cnt_acquire |
( |
yrmcds_cnt * |
c, |
|
|
const char * |
name, |
|
|
size_t |
name_len, |
|
|
uint32_t |
resources, |
|
|
uint32_t |
maximum, |
|
|
uint32_t * |
serial |
|
) |
| |
Send Acquire command.
- Parameters
-
c | A pointer to yrmcds_cnt. |
name | Name. |
name_len | Length of name . |
resources | The number of resources to acquire. |
maximum | The maximum number of resources. |
serial | A pointer to uint32_t , or NULL . |
- Returns
- 0 if succeeded. Other values indicate an error.
This function sends Acquire command to the server. If serial is not NULL , the serial number of the request will be stored if the command was sent successfully.
|