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
|
#define _LIBDECT_DEBUG_H
|
||||||
|
|
||||||
#include <utils.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_debug(enum dect_debug_subsys subsys, const char *fmt, ...) __fmtstring(2, 3);
|
||||||
extern void __dect_hexdump(enum dect_debug_subsys subsys, const char *prefix,
|
extern void __dect_hexdump(enum dect_debug_subsys subsys, const char *prefix,
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <dect/utils.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup debug
|
* @addtogroup debug
|
||||||
* @{
|
* @{
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup identity
|
* @addtogroup identity
|
||||||
* @{
|
* @{
|
||||||
|
|
|
@ -16,8 +16,11 @@ extern "C" {
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <dect/utils.h>
|
#include <dect/utils.h>
|
||||||
|
#include <dect/identities.h>
|
||||||
|
|
||||||
struct dect_handle;
|
struct dect_handle;
|
||||||
|
|
||||||
|
@ -34,6 +37,8 @@ struct dect_ie_collection {
|
||||||
struct dect_ie_common *ie[];
|
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);
|
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))
|
#define dect_ie_collection_hold(iec) ((void *)__dect_ie_collection_hold(&(iec)->common))
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
#ifndef _LIBDECT_S_FMT_H
|
#ifndef _LIBDECT_S_FMT_H
|
||||||
#define _LIBDECT_S_FMT_H
|
#define _LIBDECT_S_FMT_H
|
||||||
|
|
||||||
|
#include <dect/ie.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* S-Format message header
|
* S-Format message header
|
||||||
*/
|
*/
|
||||||
|
@ -407,8 +409,6 @@ struct dect_msg_common {
|
||||||
struct dect_ie_common *ie[0];
|
struct dect_ie_common *ie[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void *dect_ie_collection_alloc(const struct dect_handle *dh, unsigned int size);
|
|
||||||
|
|
||||||
struct dect_msg_buf;
|
struct dect_msg_buf;
|
||||||
extern enum dect_sfmt_error dect_parse_sfmt_msg(const struct dect_handle *dh,
|
extern enum dect_sfmt_error dect_parse_sfmt_msg(const struct dect_handle *dh,
|
||||||
const struct dect_sfmt_msg_desc *desc,
|
const struct dect_sfmt_msg_desc *desc,
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
#define _LIBDECT_UTILS_H
|
#define _LIBDECT_UTILS_H
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifndef AF_DECT
|
#ifndef AF_DECT
|
||||||
#define AF_DECT 38
|
#define AF_DECT 38
|
||||||
|
|
5
src/ie.c
5
src/ie.c
|
@ -19,11 +19,8 @@
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
|
|
||||||
|
#include <dect/ie.h>
|
||||||
#include <libdect.h>
|
#include <libdect.h>
|
||||||
#include <identities.h>
|
|
||||||
#include <utils.h>
|
|
||||||
#include <s_fmt.h>
|
|
||||||
#include <lce.h>
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#define refcnt_debug(fmt, ...) dect_debug(fmt, ## __VA_ARGS__)
|
#define refcnt_debug(fmt, ...) dect_debug(fmt, ## __VA_ARGS__)
|
||||||
|
|
Reference in New Issue