diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-03-04 13:18:30 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-03-04 13:23:09 +0100 |
commit | 89579b4317a7f7ab6ee706399bee4b8f25a12c3a (patch) | |
tree | 8e66e64f14e582cd29f6b78023528297b71548ba /openbsc/src/abis/input/lapd.h | |
parent | 5a6b68f4169c0ef55dca02a9644ee8f3bbc97e60 (diff) |
prefix sub-directories containing libraries with 'lib'
... and make sure tests work again after restructuring
Diffstat (limited to 'openbsc/src/abis/input/lapd.h')
-rw-r--r-- | openbsc/src/abis/input/lapd.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/openbsc/src/abis/input/lapd.h b/openbsc/src/abis/input/lapd.h deleted file mode 100644 index fd11edaa3..000000000 --- a/openbsc/src/abis/input/lapd.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef OPENBSC_LAPD_H -#define OPENBSC_LAPD_H - -#include <stdint.h> - -#include <osmocore/linuxlist.h> - -typedef enum { - LAPD_MPH_NONE = 0, - - LAPD_MPH_ACTIVATE_IND, - LAPD_MPH_DEACTIVATE_IND, - - LAPD_DL_DATA_IND, - LAPD_DL_UNITDATA_IND, - -} lapd_mph_type; - -struct lapd_instance { - struct llist_head list; /* list of LAPD instances */ - int network_side; - - void (*transmit_cb)(uint8_t *data, int len, void *cbdata); - void *cbdata; - - struct llist_head tei_list; /* list of TEI in this LAPD instance */ -}; - -extern uint8_t *lapd_receive(struct lapd_instance *li, uint8_t *data, unsigned int len, - int *ilen, lapd_mph_type *prim); - -extern void lapd_transmit(struct lapd_instance *li, uint8_t tei, uint8_t sapi, - uint8_t *data, unsigned int len); - -struct lapd_instance *lapd_instance_alloc(int network_side, - void (*tx_cb)(uint8_t *data, int len, - void *cbdata), void *cbdata); - - -/* Start a (user-side) SAP for the specified TEI/SAPI on the LAPD instance */ -int lapd_sap_start(struct lapd_instance *li, uint8_t tei, uint8_t sapi); - -/* Stop a (user-side) SAP for the specified TEI/SAPI on the LAPD instance */ -int lapd_sap_stop(struct lapd_instance *li, uint8_t tei, uint8_t sapi); - -#endif /* OPENBSC_LAPD_H */ |