mirror of
https://github.com/espressif/openthread.git
synced 2026-09-18 15:10:12 +00:00
Tasklet API cleanup.
This commit is contained in:
@@ -70,7 +70,6 @@ include_HEADERS = \
|
||||
openthread-ip6.h \
|
||||
openthread-jam-detection.h \
|
||||
openthread-message.h \
|
||||
openthread-tasklet.h \
|
||||
openthread-types.h \
|
||||
$(NULL)
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
|
||||
#include <openthread-types.h>
|
||||
|
||||
#include "openthread/tasklet.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -30,6 +30,7 @@ include $(abs_top_nlbuild_autotools_dir)/automake/pre.am
|
||||
|
||||
openthread_headers = \
|
||||
coap.h \
|
||||
tasklet.h \
|
||||
udp.h \
|
||||
$(NULL)
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
/**
|
||||
* @file
|
||||
* @brief
|
||||
* This file includes the platform abstraction for the tasklet service.
|
||||
* This file defines the OpenThread API for Tasklets.
|
||||
*/
|
||||
|
||||
#ifndef OPENTHREAD_TASKLET_H_
|
||||
#define OPENTHREAD_TASKLET_H_
|
||||
|
||||
#include <openthread-types.h>
|
||||
#include "openthread-types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -56,7 +56,7 @@ extern "C" {
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
*/
|
||||
void otProcessQueuedTasklets(otInstance *aInstance);
|
||||
void otTaskletsProcess(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* Indicates whether or not OpenThread has tasklets pending.
|
||||
@@ -66,7 +66,7 @@ void otProcessQueuedTasklets(otInstance *aInstance);
|
||||
* @retval TRUE If there are tasklets pending.
|
||||
* @retval FALSE If there are no tasklets pending.
|
||||
*/
|
||||
bool otAreTaskletsPending(otInstance *aInstance);
|
||||
bool otTaskletsArePending(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* OpenThread calls this function when the tasklet queue transitions from empty to non-empty.
|
||||
@@ -74,7 +74,7 @@ bool otAreTaskletsPending(otInstance *aInstance);
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
*
|
||||
*/
|
||||
extern void otSignalTaskletPending(otInstance *aInstance);
|
||||
extern void otTaskletsSignalPending(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* @}
|
||||
Reference in New Issue
Block a user