diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-12 13:10:48 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-12 13:10:48 +0200 |
| commit | 45ef4948db670224c7cc727507f84924bd826002 (patch) | |
| tree | 45ab5e37a3cb062f4276e8b1456cb5397e58eddc /core/include/turns/turns-participant.h | |
| parent | cf6951bbfe99bf494f22c1b1d02fb6a8f45e73a9 (diff) | |
| download | turns-45ef4948db670224c7cc727507f84924bd826002.tar.xz turns-45ef4948db670224c7cc727507f84924bd826002.zip | |
core: begin c-style API
Diffstat (limited to 'core/include/turns/turns-participant.h')
| -rw-r--r-- | core/include/turns/turns-participant.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/core/include/turns/turns-participant.h b/core/include/turns/turns-participant.h new file mode 100644 index 0000000..001de6b --- /dev/null +++ b/core/include/turns/turns-participant.h @@ -0,0 +1,27 @@ +#ifndef TURNS_PARTICIPANT_H +#define TURNS_PARTICIPANT_H + +#include "turns/turns-disposition.h" + +#include <glib-object.h> +#include <glib.h> +#include <glibconfig.h> + +G_BEGIN_DECLS + +#define TURNS_TYPE_PARTICIPANT turns_participant_get_type() +G_DECLARE_FINAL_TYPE(TurnsParticipant, turns_participant, TURNS, PARTICIPANT, GObject) + +TurnsParticipant * turns_participant_new(gchar const * name, gfloat priority, TurnsDisposition disposition) G_GNUC_WARN_UNUSED_RESULT; + +gchar const * turns_participant_get_name(TurnsParticipant const * self); +gfloat turns_participant_get_priority(TurnsParticipant const * self); +TurnsDisposition turns_participant_get_disposition(TurnsParticipant const * self); + +void turns_participant_set_name(TurnsParticipant * self, gchar const * value); +void turns_participant_set_priority(TurnsParticipant * self, gfloat value); +void turns_participant_set_disposition(TurnsParticipant * self, TurnsDisposition value); + +G_END_DECLS + +#endif
\ No newline at end of file |
