Skip to content

Commit

Permalink
Bump API version to 3, release candidate 2
Browse files Browse the repository at this point in the history
  • Loading branch information
obgm committed Apr 21, 2021
1 parent 63f1369 commit 3f7ba0a
Show file tree
Hide file tree
Showing 97 changed files with 80 additions and 80 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project(
VERSION 4.3.0
LANGUAGES CXX C)

set(LIBCOAP_API_VERSION 2)
set(LIBCOAP_API_VERSION 3)
set(COAP_LIBRARY_NAME "coap-${LIBCOAP_API_VERSION}")

option(
Expand Down
4 changes: 2 additions & 2 deletions coap_config.h.lwip
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#endif

#define PACKAGE_NAME "libcoap"
#define PACKAGE_VERSION "4.3.0rc1"
#define PACKAGE_STRING "libcoap 4.3.0rc1"
#define PACKAGE_VERSION "4.3.0rc2"
#define PACKAGE_STRING "libcoap 4.3.0rc2"

#define assert(x) LWIP_ASSERT("CoAP assert failed", x)

Expand Down
4 changes: 2 additions & 2 deletions coap_config.h.riot
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
#define PACKAGE_NAME "libcoap"

/* Define to the version of this package. */
#define PACKAGE_VERSION "4.3.0rc1"
#define PACKAGE_VERSION "4.3.0rc2"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "libcoap 4.3.0rc1"
#define PACKAGE_STRING "libcoap 4.3.0rc2"

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
Expand Down
4 changes: 2 additions & 2 deletions coap_config.h.windows
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#define PACKAGE_NAME "libcoap"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "libcoap 4.3.0rc1"
#define PACKAGE_STRING "libcoap 4.3.0rc2"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "libcoap"
Expand All @@ -87,7 +87,7 @@
#define PACKAGE_URL "https://libcoap.net/"

/* Define to the version of this package. */
#define PACKAGE_VERSION "4.3.0rc1"
#define PACKAGE_VERSION "4.3.0rc2"

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ m4_define([libcoap_micro_version], [0])

# define an appending release state if needed, for example for pre-releases
# like 'alpha' or 'rc1', for a full release keep the value empty!
m4_define([libcoap_release_state], [rc1])
m4_define([libcoap_release_state], [rc2])

# concatenate the full libcoap version string
m4_define([libcoap_version], [m4_format([%s.%s.%s%s], libcoap_major_version, libcoap_minor_version, libcoap_micro_version, libcoap_release_state)])
Expand Down Expand Up @@ -119,7 +119,7 @@ AC_SUBST(LT_LIBCOAP_AGE)
AC_SUBST(LIBCOAP_SO_VERSION)

# Defining the API Version
LIBCOAP_API_VERSION=2
LIBCOAP_API_VERSION=3
AC_SUBST(LIBCOAP_API_VERSION)

# Define a numeric version string
Expand Down
2 changes: 1 addition & 1 deletion examples/coap-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static char* strndup(const char* s1, size_t n)
#include <netdb.h>
#endif

#include <coap2/coap.h>
#include <coap3/coap.h>

#define MAX_USER 128 /* Maximum length of a user name (i.e., PSK
* identity) in bytes. */
Expand Down
2 changes: 1 addition & 1 deletion examples/coap-rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <dirent.h>
#endif

#include <coap2/coap.h>
#include <coap3/coap.h>

#define COAP_RESOURCE_CHECK_TIME 2

Expand Down
2 changes: 1 addition & 1 deletion examples/coap-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static char* strndup(const char* s1, size_t n)
/* Need to refresh time once per sec */
#define COAP_RESOURCE_CHECK_TIME 1

#include <coap2/coap.h>
#include <coap3/coap.h>

#ifndef min
#define min(a,b) ((a) < (b) ? (a) : (b))
Expand Down
2 changes: 1 addition & 1 deletion examples/coap_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <stdio.h>
#include <string.h>

#include <coap2/coap.h>
#include <coap3/coap.h>

int
coap_insert(coap_list_t **head, coap_list_t *node) {
Expand Down
2 changes: 1 addition & 1 deletion examples/coap_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#ifndef COAP_LIST_H_
#define COAP_LIST_H_

#include <coap2/utlist.h>
#include <coap3/utlist.h>

typedef struct coap_list_t {
struct coap_list_t *next;
Expand Down
2 changes: 1 addition & 1 deletion examples/contiki/coap-observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include <string.h>

#include "coap2/coap.h"
#include "coap3/coap.h"

static coap_context_t *coap_context;

Expand Down
2 changes: 1 addition & 1 deletion examples/contiki/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

#include <string.h>

#include "coap2/coap.h"
#include "coap3/coap.h"

static coap_context_t *coap_context;

Expand Down
2 changes: 1 addition & 1 deletion examples/etsi_iot_01.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <errno.h>
#include <signal.h>

#include <coap2/coap.h>
#include <coap3/coap.h>

#define COAP_RESOURCE_CHECK_TIME_SEC 1

Expand Down
2 changes: 1 addition & 1 deletion examples/lwip/server-coap.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "coap_config.h"
#include <coap2/coap.h>
#include <coap3/coap.h>

coap_context_t *main_coap_context;

Expand Down
2 changes: 1 addition & 1 deletion examples/lwip/server-coap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "coap_config.h"
#include <coap2/coap.h>
#include <coap3/coap.h>

void server_coap_init(void);
/* call this when you think that resources could be dirty */
Expand Down
2 changes: 1 addition & 1 deletion examples/tiny.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <netdb.h>
#include <signal.h>

#include <coap2/coap.h>
#include <coap3/coap.h>

#define Nn 8 /* duplicate definition of N if built on sky motes */
#define ENCODE_HEADER_SIZE 4
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
48 changes: 24 additions & 24 deletions include/coap2/coap.h.windows → include/coap3/coap.h.windows
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#define LIBCOAP_PACKAGE_NAME "libcoap"

/* Define the full name and version of libcoap. */
#define LIBCOAP_PACKAGE_STRING "libcoap 4.3.0rc1"
#define LIBCOAP_PACKAGE_STRING "libcoap 4.3.0rc2"

/* Define the home page for libcoap. */
#define LIBCOAP_PACKAGE_URL "https://libcoap.net/"

/* Define the version of libcoap this file belongs to. */
#define LIBCOAP_PACKAGE_VERSION "4.3.0rc1"
#define LIBCOAP_PACKAGE_VERSION "4.3.0rc2"

/* Define the numeric version identifier for libcoap */
#define LIBCOAP_VERSION (4003000U)
Expand All @@ -33,29 +33,29 @@
extern "C" {
#endif

#include "coap2/libcoap.h"
#include "coap3/libcoap.h"

#include "coap2/coap_forward_decls.h"
#include "coap2/address.h"
#include "coap2/async.h"
#include "coap2/bits.h"
#include "coap2/block.h"
#include "coap2/coap_cache.h"
#include "coap2/coap_debug.h"
#include "coap2/coap_dtls.h"
#include "coap2/coap_event.h"
#include "coap2/coap_io.h"
#include "coap2/coap_prng.h"
#include "coap2/coap_time.h"
#include "coap2/encode.h"
#include "coap2/mem.h"
#include "coap2/net.h"
#include "coap2/option.h"
#include "coap2/pdu.h"
#include "coap2/resource.h"
#include "coap2/str.h"
#include "coap2/subscribe.h"
#include "coap2/uri.h"
#include "coap3/coap_forward_decls.h"
#include "coap3/address.h"
#include "coap3/async.h"
#include "coap3/bits.h"
#include "coap3/block.h"
#include "coap3/coap_cache.h"
#include "coap3/coap_debug.h"
#include "coap3/coap_dtls.h"
#include "coap3/coap_event.h"
#include "coap3/coap_io.h"
#include "coap3/coap_prng.h"
#include "coap3/coap_time.h"
#include "coap3/encode.h"
#include "coap3/mem.h"
#include "coap3/net.h"
#include "coap3/option.h"
#include "coap3/pdu.h"
#include "coap3/resource.h"
#include "coap3/str.h"
#include "coap3/subscribe.h"
#include "coap3/uri.h"

#ifdef __cplusplus
}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef COAP_ASYNC_INTERNAL_H_
#define COAP_ASYNC_INTERNAL_H_

#include "coap2/net.h"
#include "coap3/net.h"

#ifndef WITHOUT_ASYNC

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# include <assert.h>
#endif

#include "coap2/coap.h"
#include "coap3/coap.h"

/*
* Include all the header files that are for internal use only.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions man/examples-code-check.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static void check_synopsis(const char* file) {
exit_code = 1;
return;
}
fprintf(fpcode, "#include <coap2/coap.h>\n");
fprintf(fpcode, "#include <coap3/coap.h>\n");
fprintf(fpcode, "#ifdef __GNUC__\n");
fprintf(fpcode, "#define U __attribute__ ((unused))\n");
fprintf(fpcode, "#else /* not a GCC */\n");
Expand Down Expand Up @@ -412,7 +412,7 @@ int main(int argc, char* argv[])
}
if (fpcode) {
if (strstr (buffer, "LIBCOAP_API_VERSION")) {
fprintf(fpcode, "#include <coap2/coap.h>\n");
fprintf(fpcode, "#include <coap3/coap.h>\n");
fprintf(fpcode, "#ifdef __GNUC__\n");
fprintf(fpcode, "#define U __attribute__ ((unused))\n");
fprintf(fpcode, "#else /* not a GCC */\n");
Expand Down
2 changes: 1 addition & 1 deletion src/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#if !defined(WITH_CONTIKI) && !defined(WITH_LWIP)
#ifdef HAVE_ARPA_INET_H
Expand Down
2 changes: 1 addition & 1 deletion src/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @brief state management for asynchronous messages
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#ifndef WITHOUT_ASYNC

Expand Down
2 changes: 1 addition & 1 deletion src/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#ifndef min
#define min(a,b) ((a) < (b) ? (a) : (b))
Expand Down
2 changes: 1 addition & 1 deletion src/coap_asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

size_t
asn1_len(const uint8_t **ptr)
Expand Down
2 changes: 1 addition & 1 deletion src/coap_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

/* Determines if the given option_type denotes an option type that can
* be used as CacheKey. Options that can be cache keys are not Unsafe
Expand Down
2 changes: 1 addition & 1 deletion src/coap_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#if defined(HAVE_STRNLEN) && defined(__GNUC__) && !defined(_GNU_SOURCE)
#define _GNU_SOURCE 1
Expand Down
2 changes: 1 addition & 1 deletion src/coap_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

/*
* This replaces coap_set_event_handler() so that handler registration is
Expand Down
2 changes: 1 addition & 1 deletion src/coap_gnutls.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* 3.6.6 or later is required to support Raw Public Key(RPK)
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#ifdef HAVE_LIBGNUTLS

Expand Down
2 changes: 1 addition & 1 deletion src/coap_hashkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

void
coap_hash_impl(const unsigned char *s, size_t len, coap_key_t h) {
Expand Down
2 changes: 1 addition & 1 deletion src/coap_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#ifdef HAVE_STDIO_H
# include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion src/coap_io_lwip.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"
#include <lwip/udp.h>

#if NO_SYS
Expand Down
2 changes: 1 addition & 1 deletion src/coap_io_riot.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* README for terms of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#ifdef HAVE_STDIO_H
# include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion src/coap_mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* m_env A coap_mbedtls_env_t * (held in c_session->tls)
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#ifdef HAVE_MBEDTLS

Expand Down
2 changes: 1 addition & 1 deletion src/coap_notls.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of use.
*/

#include "coap2/coap_internal.h"
#include "coap3/coap_internal.h"

#if !defined(HAVE_LIBTINYDTLS) && !defined(HAVE_OPENSSL) && !defined(HAVE_LIBGNUTLS) && !defined(HAVE_MBEDTLS)

Expand Down
Loading

0 comments on commit 3f7ba0a

Please sign in to comment.