#ifndef WEBRTCPUSH_RTC_CLIENT_H
#define WEBRTCPUSH_RTC_CLIENT_H

#include "app_state.h"

#include <json-glib/json-glib.h>

int rtc_client_start(AppState *app);
void rtc_client_stop(AppState *app);
void rtc_client_reset(AppState *app);

int rtc_client_handle_offer(AppState *app, const char *sdp);
void rtc_client_handle_remote_ice(AppState *app, JsonObject *candidate);

gboolean rtc_client_is_active(AppState *app);
gboolean rtc_client_media_open(AppState *app);

#endif
