Skip to content

Module: core

Synopsis

#include <core/core.h>

Main entry point for the libmlk-core library.

The library must be initialized before attempting to call any other functions in the API.

Functions

core_init

Initialize the library.

You must specify an organization and program name. The organization argument can be anything but reversed domain name notation is often used. It will also determine the path to the preferred directories on certain platforms so make sure to not use characters that may be illegal on some filesystems.

Returns false in case of errors.

bool
core_init(const char *organization, const char *name);

core_finish

Close the library.

void
core_finish(void);