Commit 84613a98 authored by Brice Videau's avatar Brice Videau
Browse files

Added version querying API.

parent 39f4aceb
......@@ -13,6 +13,14 @@ extern "C" {
typedef double ccs_float_t;
typedef int64_t ccs_int_t;
typedef int32_t ccs_bool_t;
typedef struct {
uint16_t major;
uint16_t minor;
uint16_t patch;
uint16_t revision;
} ccs_version_t;
extern const ccs_version_t ccs_version;
#define CCS_TRUE ((ccs_bool_t)(1))
#define CCS_FALSE ((ccs_bool_t)(0))
......@@ -193,6 +201,9 @@ extern const ccs_datum_t ccs_inactive;
extern ccs_error_t
ccs_init();
extern ccs_version_t
ccs_get_version();
extern ccs_error_t
ccs_retain_object(ccs_object_t object);
......
......@@ -4,6 +4,7 @@
const ccs_datum_t ccs_none = CCS_NONE_VAL;
const ccs_datum_t ccs_inactive = CCS_INACTIVE_VAL;
const ccs_version_t ccs_version = { 0, 0, 1, 0 };
ccs_error_t
ccs_init() {
......@@ -11,6 +12,11 @@ ccs_init() {
return CCS_SUCCESS;
}
ccs_version_t
ccs_get_version() {
return ccs_version;
}
ccs_error_t
ccs_retain_object(ccs_object_t object) {
_ccs_object_internal_t *obj = (_ccs_object_internal_t *)object;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment