dect
/
libdect
Archived
13
0
Fork 0

libdect: include cleanup - misc cleanups

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-07-26 23:18:05 +02:00
parent fee1f097f2
commit 5c1320175d
7 changed files with 17 additions and 6 deletions

View File

@ -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,

View File

@ -5,6 +5,9 @@
extern "C" {
#endif
#include <stdarg.h>
#include <dect/utils.h>
/**
* @addtogroup debug
* @{

View File

@ -11,6 +11,9 @@
extern "C" {
#endif
#include <stdint.h>
#include <stdbool.h>
/**
* @addtogroup identity
* @{

View File

@ -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))

View File

@ -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,

View File

@ -2,6 +2,8 @@
#define _LIBDECT_UTILS_H
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#ifndef AF_DECT
#define AF_DECT 38

View File

@ -19,11 +19,8 @@
#include <inttypes.h>
#include <asm/byteorder.h>
#include <dect/ie.h>
#include <libdect.h>
#include <identities.h>
#include <utils.h>
#include <s_fmt.h>
#include <lce.h>
#if 0
#define refcnt_debug(fmt, ...) dect_debug(fmt, ## __VA_ARGS__)