observe fixes

Dependencies:   nanoservice_client_1_12_X Nanostack_lib

Fork of mbedEndpointNetwork_6LowPAN by Doug Anson

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbedEndpointNetworkStubs.h Source File

mbedEndpointNetworkStubs.h

Go to the documentation of this file.
00001  /**
00002  * @file    mbedEndpointNetworkStubs.h
00003  * @brief   mbed Endpoint Network Stubs header - these must be implemented in any lower network layer interfacing with mbedConnectorInterface
00004  * @author  Doug Anson
00005  * @version 1.0
00006  * @see     
00007  *
00008  * Copyright (c) 2014
00009  *
00010  * Licensed under the Apache License, Version 2.0 (the "License");
00011  * you may not use this file except in compliance with the License.
00012  * You may obtain a copy of the License at
00013  *
00014  *     http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing, software
00017  * distributed under the License is distributed on an "AS IS" BASIS,
00018  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019  * See the License for the specific language governing permissions and
00020  * limitations under the License.
00021  */
00022  
00023  #ifndef __MBED_ENDPOINT_NETWORK_STUBS_H__
00024  #define __MBED_ENDPOINT_NETWORK_STUBS_H__
00025  
00026  #include "configuration.h"
00027  #include "nsdl_support.h"
00028  
00029  // we have to redefine DBG as its used differently here...
00030  #ifdef DBG
00031     #undef DBG
00032  #endif
00033  #define DBG  printf
00034  
00035   // Linkage to the lower network APIs and interfaces
00036  extern "C" void net_stubs_pre_plumb_network(bool canActAsRouterNode);      // before endpoint is configured...
00037  extern "C" void net_stubs_post_plumb_network(void);                        // after endpoint is configured...
00038  extern "C" void net_stubs_create_main_loop(void);
00039  extern "C" void net_stubs_register_endpoint();
00040  extern "C" void net_stubs_begin_main_loop(void);
00041  
00042  // Utils.cpp functions...
00043  extern void utils_configure_endpoint(void);
00044  extern void utils_init_and_register_endpoint(void);
00045  
00046  #endif // __MBED_ENDPOINT_NETWORK_STUBS_H__