ANSI C11 interface

Daggy Core ANSI C11 interface

ANSI C functions

Core.h
#include "daggycore_export.h"

#include "Types.h"
#include "Errors.h"

#ifdef __cplusplus
extern "C" {
#endif

DAGGYCORE_EXPORT DaggyErrors libdaggy_core_create(const char* sources,
                                                  DaggySourcesTextTypes text_type,
                                                  DaggyCore* core);
DAGGYCORE_EXPORT DaggyErrors libdaggy_core_start(DaggyCore core);
DAGGYCORE_EXPORT DaggyErrors libdaggy_core_stop(DaggyCore core);
DAGGYCORE_EXPORT void libdaggy_core_destroy(DaggyCore* core);

DAGGYCORE_EXPORT DaggyErrors libdaggy_connect_aggregator(DaggyCore core,
                                                         libdaggy_on_daggy_state_changed on_daggy_state_changed,
                                                         libdaggy_on_provider_state_changed on_provider_state_changed,
                                                         libdaggy_on_provider_error on_provider_error,
                                                         libdaggy_on_command_state_changed on_command_state_changed,
                                                         libdaggy_on_command_stream on_command_stream,
                                                         libdaggy_on_command_error on_command_error);


DAGGYCORE_EXPORT void libdaggy_app_create(int argc, char** argv);
DAGGYCORE_EXPORT int libdaggy_app_exec();
DAGGYCORE_EXPORT void libdaggy_app_stop();

DAGGYCORE_EXPORT void libdaggy_run_in_thread(libdaggy_thread_function function, void* parameter);

#ifdef __cplusplus
}
#endif

Usage Example

Last updated

Was this helpful?