mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-30 22:45:49 +03:00
This change excludes the coap subdirectory from the include path reported by pkg-config --cflags to avoid name conflicts with other installed packages. Applications now must add the prefix 'coap/' to include directives for libcoap header files, e.g. #include <coap/coap.h> Jean-Claude Michelou has reported this problem in Bug #82 [1]. [1] https://github.com/obgm/libcoap/issues/82 A minimal Makefile now could look be written as: PKG_LIBCOAP=libcoap-1 CPPFLAGS=$(shell pkg-config --cflags-only-I $(PKG_LIBCOAP)) -DWITH_POSIX LDFLAGS=$(shell pkg-config --libs-only-L $(PKG_LIBCOAP)) LDLIBS=$(shell pkg-config --libs-only-l $(PKG_LIBCOAP))
34 lines
841 B
C
34 lines
841 B
C
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 * -*- */
|
|
|
|
/* coap_list.h -- CoAP list structures
|
|
*
|
|
* Copyright (C) 2010,2011,2015 Olaf Bergmann <bergmann@tzi.org>
|
|
*
|
|
* This file is part of the CoAP library libcoap. Please see README for terms of
|
|
* use.
|
|
*/
|
|
|
|
#ifndef _COAP_LIST_H_
|
|
#define _COAP_LIST_H_
|
|
|
|
#include <coap/utlist.h>
|
|
|
|
typedef struct coap_list_t {
|
|
struct coap_list_t *next;
|
|
char data[];
|
|
} coap_list_t;
|
|
|
|
/**
|
|
* Adds node to given queue, ordered by specified order function. Returns 1
|
|
* when insert was successful, 0 otherwise.
|
|
*/
|
|
int coap_insert(coap_list_t **queue, coap_list_t *node);
|
|
|
|
/* destroys specified node */
|
|
int coap_delete(coap_list_t *node);
|
|
|
|
/* removes all items from given queue and frees the allocated storage */
|
|
void coap_delete_list(coap_list_t *queue);
|
|
|
|
#endif /* _COAP_LIST_H_ */
|