21 lines
439 B
C
21 lines
439 B
C
#pragma once
|
|
|
|
#include <osmocom/core/select.h>
|
|
#include <osmocom/core/timer.h>
|
|
|
|
struct app_config;
|
|
|
|
struct mncc_connection {
|
|
struct app_config *app;
|
|
struct osmo_fd fd;
|
|
|
|
struct osmo_timer_list reconnect;
|
|
|
|
|
|
/* callback for application logic */
|
|
void (*on_disconnect)(struct mncc_connection *);
|
|
};
|
|
|
|
void mncc_connection_init(struct mncc_connection *conn, struct app_config *cfg);
|
|
void mncc_connection_start(struct mncc_connection *conn);
|