Concord - C Discord API library
A Discord API wrapper library written in C
concord-once.h
Go to the documentation of this file.
1
7#ifndef CONCORD_ONCE_H
8#define CONCORD_ONCE_H
9
10#include "concord-error.h"
11
13typedef CCORDcode (*ccord_once_cb)(long flags);
14
29
38CCORDcode ccord_once(_Bool *once);
39
48
49#endif /* CONCORD_ONCE_H */
CCORDcode ccord_once_set_callback(ccord_once_cb callback, long flags)
Register a user callback for initialization.
CCORDcode(* ccord_once_cb)(long flags)
Definition: concord-once.h:13
CCORDcode ccord_once(_Bool *once)
Initialize context once.
void ccord_once_cleanup(void)
Cleanup once context.
int CCORDcode
Concord error codes.
Definition: concord-error.h:11