projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused pkg dependancy
[platform/upstream/iotivity.git]
/
extlibs
/
tinydtls
/
hmac.c
diff --git
a/extlibs/tinydtls/hmac.c
b/extlibs/tinydtls/hmac.c
index
0a9b8f7
..
571a59a
100644
(file)
--- a/
extlibs/tinydtls/hmac.c
+++ b/
extlibs/tinydtls/hmac.c
@@
-42,12
+42,12
@@
#ifndef WITH_CONTIKI
#include <stdlib.h>
#ifndef WITH_CONTIKI
#include <stdlib.h>
-
static inline
dtls_hmac_context_t *
+
INLINE_API
dtls_hmac_context_t *
dtls_hmac_context_new() {
return (dtls_hmac_context_t *)malloc(sizeof(dtls_hmac_context_t));
}
dtls_hmac_context_new() {
return (dtls_hmac_context_t *)malloc(sizeof(dtls_hmac_context_t));
}
-
static inline
void
+
INLINE_API
void
dtls_hmac_context_free(dtls_hmac_context_t *ctx) {
free(ctx);
}
dtls_hmac_context_free(dtls_hmac_context_t *ctx) {
free(ctx);
}
@@
-56,12
+56,12
@@
dtls_hmac_context_free(dtls_hmac_context_t *ctx) {
#include "memb.h"
MEMB(hmac_context_storage, dtls_hmac_context_t, DTLS_HASH_MAX);
#include "memb.h"
MEMB(hmac_context_storage, dtls_hmac_context_t, DTLS_HASH_MAX);
-
static inline
dtls_hmac_context_t *
+
INLINE_API
dtls_hmac_context_t *
dtls_hmac_context_new() {
return (dtls_hmac_context_t *)memb_alloc(&hmac_context_storage);
}
dtls_hmac_context_new() {
return (dtls_hmac_context_t *)memb_alloc(&hmac_context_storage);
}
-
static inline
void
+
INLINE_API
void
dtls_hmac_context_free(dtls_hmac_context_t *ctx) {
memb_free(&hmac_context_storage, ctx);
}
dtls_hmac_context_free(dtls_hmac_context_t *ctx) {
memb_free(&hmac_context_storage, ctx);
}