libdect: include cleanup - misc cleanups
Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
fee1f097f2
commit
5c1320175d
|
@ -2,6 +2,7 @@
|
|||
#define _LIBDECT_DEBUG_H
|
||||
|
||||
#include <utils.h>
|
||||
#include <dect/debug.h>
|
||||
|
||||
extern void __dect_debug(enum dect_debug_subsys subsys, const char *fmt, ...) __fmtstring(2, 3);
|
||||
extern void __dect_hexdump(enum dect_debug_subsys subsys, const char *prefix,
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <dect/utils.h>
|
||||
|
||||
/**
|
||||
* @addtogroup debug
|
||||
* @{
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/**
|
||||
* @addtogroup identity
|
||||
* @{
|
||||
|
|
|
@ -16,8 +16,11 @@ extern "C" {
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <dect/utils.h>
|
||||
#include <dect/identities.h>
|
||||
|
||||
struct dect_handle;
|
||||
|
||||
|
@ -34,6 +37,8 @@ struct dect_ie_collection {
|
|||
struct dect_ie_common *ie[];
|
||||
};
|
||||
|
||||
extern void *dect_ie_collection_alloc(const struct dect_handle *dh, unsigned int size);
|
||||
|
||||
extern struct dect_ie_collection *__dect_ie_collection_hold(struct dect_ie_collection *iec);
|
||||
|
||||
#define dect_ie_collection_hold(iec) ((void *)__dect_ie_collection_hold(&(iec)->common))
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#ifndef _LIBDECT_S_FMT_H
|
||||
#define _LIBDECT_S_FMT_H
|
||||
|
||||
#include <dect/ie.h>
|
||||
|
||||
/*
|
||||
* S-Format message header
|
||||
*/
|
||||
|
@ -407,8 +409,6 @@ struct dect_msg_common {
|
|||
struct dect_ie_common *ie[0];
|
||||
};
|
||||
|
||||
extern void *dect_ie_collection_alloc(const struct dect_handle *dh, unsigned int size);
|
||||
|
||||
struct dect_msg_buf;
|
||||
extern enum dect_sfmt_error dect_parse_sfmt_msg(const struct dect_handle *dh,
|
||||
const struct dect_sfmt_msg_desc *desc,
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
#define _LIBDECT_UTILS_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef AF_DECT
|
||||
#define AF_DECT 38
|
||||
|
|
Reference in New Issue