Skip to content

Commit

Permalink
sys/include/net/gcoap: add proxy thread header file
Browse files Browse the repository at this point in the history
  • Loading branch information
mariemC committed Apr 24, 2024
1 parent ede35eb commit 4d8c173
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions sys/include/net/gcoap/forward_proxy_thread.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Copyright (C) 2024 ML!PA Consulting GmbH
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for
* more details.
*/

/**
* @defgroup net_gcoap_forward_proxy_thread GCoAP Forward Proxy Thread
* @ingroup net_gcoap
* @brief Forward proxy thread implementation for GCoAP
*
* @{
*
* @file
* @brief Definitions for the GCoAP forward proxy thread
*
* @author Mariem Charrada <mariem.charrada@ml-pa.com>
*/

#ifndef NET_GCOAP_FORWARD_PROXY_THREAD_H
#define NET_GCOAP_FORWARD_PROXY_THREAD_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Stack size for the forward proxy thread
*
*/
#ifndef GCOAP_PROXY_STACK_SIZE
#define GCOAP_PROXY_STACK_SIZE (THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE \
+ sizeof(coap_pkt_t) + GCOAP_DTLS_EXTRA_STACKSIZE)
#endif

/**
* @brief Definition of forward proxy thread msgs.
*/
enum {
GCOAP_FORWARD_PROXY_MSG_SEND,
};

/**
* @brief Initialize the forward proxy thread
*/
void gcoap_forward_proxy_thread_init(void);

#ifdef __cplusplus
}
#endif

#endif /* NET_GCOAP_FORWARD_PROXY_THREAD_H */
/**
* @}
*/

0 comments on commit 4d8c173

Please sign in to comment.