diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2011-09-02 11:14:54 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2011-09-04 09:57:51 +0200 |
commit | 5c8b76e74e5d6f69f5d77c9092bcd7d47f1c2ecc (patch) | |
tree | cdc80fa97cb41f0c2522a2733b885f853c5f886d /src/host/layer23/include | |
parent | 606aeebeb3a37323ea7c03dad666d2b1817979ce (diff) |
[mobile] Adding socket application interface code from OpenBSC.
Diffstat (limited to 'src/host/layer23/include')
-rw-r--r-- | src/host/layer23/include/osmocom/bb/mobile/mncc_sock.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/mncc_sock.h b/src/host/layer23/include/osmocom/bb/mobile/mncc_sock.h new file mode 100644 index 00000000..b38c5bc6 --- /dev/null +++ b/src/host/layer23/include/osmocom/bb/mobile/mncc_sock.h @@ -0,0 +1,16 @@ +#ifndef _MNCC_SOCK_H +#define _MNCC_SOCK_H + +struct mncc_sock_state { + void *inst; + struct osmo_fd listen_bfd; /* fd for listen socket */ + struct osmo_fd conn_bfd; /* fd for connection to lcr */ + struct llist_head upqueue; +}; + +int mncc_sock_from_cc(struct mncc_sock_state *state, struct msgb *msg); +void mncc_sock_write_pending(struct mncc_sock_state *state); +struct mncc_sock_state *mncc_sock_init(void *inst, const char *name, void *tall_ctx); +void mncc_sock_exit(struct mncc_sock_state *state); + +#endif /* _MNCC_SOCK_H */ |