Core library functions.
More...
#include <stdlib.h>
#include <stdbool.h>
#include "libjaylink.h"
#include "libjaylink-internal.h"
Shutdown libjaylink.
- Parameters
-
[in,out] | ctx | libjaylink context. |
- Return values
-
JAYLINK_OK | Success. |
JAYLINK_ERR_ARG | Invalid arguments. |
- Since
- 0.1.0
Initialize libjaylink.
This function must be called before any other libjaylink function is called.
- Parameters
-
[out] | ctx | Newly allocated libjaylink context on success, and undefined on failure. |
- Return values
-
JAYLINK_OK | Success. |
JAYLINK_ERR_ARG | Invalid arguments. |
JAYLINK_ERR_MALLOC | Memory allocation error. |
JAYLINK_ERR | Other error conditions. |
- Since
- 0.1.0
Check for a capability of libjaylink.
- Parameters
-
[in] | cap | Capability to check for. |
- Return values
-
true | Capability is supported. |
false | Capability is not supported or invalid argument. |
- Since
- 0.1.0