mirror of https://gerrit.osmocom.org/libosmocore
include: use '#pragma once' everywhere
Change-Id: Iecc1754caae401aca28444d3e3d0cca04b398f26
This commit is contained in:
parent
70093f23ad
commit
363eee1246
|
@ -22,8 +22,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ISDNHDLC_H__
|
#pragma once
|
||||||
#define __ISDNHDLC_H__
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -76,5 +75,3 @@ extern void osmo_isdnhdlc_out_init(struct osmo_isdnhdlc_vars *hdlc, uint32_t fea
|
||||||
|
|
||||||
extern int osmo_isdnhdlc_encode(struct osmo_isdnhdlc_vars *hdlc, const uint8_t *src,
|
extern int osmo_isdnhdlc_encode(struct osmo_isdnhdlc_vars *hdlc, const uint8_t *src,
|
||||||
uint16_t slen, int *count, uint8_t *dst, int dsize);
|
uint16_t slen, int *count, uint8_t *dst, int dsize);
|
||||||
|
|
||||||
#endif /* __ISDNHDLC_H__ */
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
* Osmocom Sercomm HDLC (de)multiplex.
|
* Osmocom Sercomm HDLC (de)multiplex.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SERCOMM_H
|
#pragma once
|
||||||
#define _SERCOMM_H
|
|
||||||
|
|
||||||
#include <osmocom/core/msgb.h>
|
#include <osmocom/core/msgb.h>
|
||||||
|
|
||||||
|
@ -110,5 +109,3 @@ static inline struct msgb *osmo_sercomm_alloc_msgb(unsigned int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! @} */
|
/*! @} */
|
||||||
|
|
||||||
#endif /* _SERCOMM_H */
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/*! \file gsm_04_08_gprs.h */
|
/*! \file gsm_04_08_gprs.h */
|
||||||
|
|
||||||
#ifndef _GSM48_GPRS_H
|
#pragma once
|
||||||
#define _GSM48_GPRS_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
@ -465,6 +464,3 @@ struct gsm48_qos {
|
||||||
/* octet 16 */
|
/* octet 16 */
|
||||||
uint8_t guar_bitrate_down_ext;
|
uint8_t guar_bitrate_down_ext;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* _GSM48_GPRS_H */
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
/*! \file gsm_09_02.h
|
/*! \file gsm_09_02.h
|
||||||
* GSM TS 09.02 definitions (MAP). */
|
* GSM TS 09.02 definitions (MAP). */
|
||||||
|
|
||||||
#ifndef PROTO_GSM_09_02_H
|
#pragma once
|
||||||
#define PROTO_GSM_09_02_H
|
|
||||||
|
|
||||||
/* Section 17.7.4 */
|
/* Section 17.7.4 */
|
||||||
/* SS-Status */
|
/* SS-Status */
|
||||||
|
@ -134,5 +133,3 @@
|
||||||
#define GSM0902_TS_CODE_PLMN_SPECIFIC_TS_C 0xDC
|
#define GSM0902_TS_CODE_PLMN_SPECIFIC_TS_C 0xDC
|
||||||
#define GSM0902_TS_CODE_PLMN_SPECIFIC_TS_D 0xDD
|
#define GSM0902_TS_CODE_PLMN_SPECIFIC_TS_D 0xDD
|
||||||
#define GSM0902_TS_CODE_PLMN_SPECIFIC_TS_E 0xDE
|
#define GSM0902_TS_CODE_PLMN_SPECIFIC_TS_E 0xDE
|
||||||
|
|
||||||
#endif /* PROTO_GSM_09_02_H */
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
* Routines for helping with SIM (ISO/IEC 7816-4 more generally) communication.
|
* Routines for helping with SIM (ISO/IEC 7816-4 more generally) communication.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _OSMOCOM_SIM_H
|
#pragma once
|
||||||
#define _OSMOCOM_SIM_H
|
|
||||||
|
|
||||||
#include <osmocom/core/msgb.h>
|
#include <osmocom/core/msgb.h>
|
||||||
#include <osmocom/core/linuxlist.h>
|
#include <osmocom/core/linuxlist.h>
|
||||||
|
@ -445,4 +444,3 @@ struct osim_reader_hdl *osim_reader_open(enum osim_reader_driver drv, int idx,
|
||||||
struct osim_card_hdl *osim_card_open(struct osim_reader_hdl *rh, enum osim_proto proto);
|
struct osim_card_hdl *osim_card_open(struct osim_reader_hdl *rh, enum osim_proto proto);
|
||||||
int osim_card_reset(struct osim_card_hdl *card, bool cold_reset);
|
int osim_card_reset(struct osim_card_hdl *card, bool cold_reset);
|
||||||
int osim_card_close(struct osim_card_hdl *card);
|
int osim_card_close(struct osim_card_hdl *card);
|
||||||
#endif /* _OSMOCOM_SIM_H */
|
|
||||||
|
|
Loading…
Reference in New Issue