aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/core/mapMe.h
diff options
context:
space:
mode:
authorLuca Muscariello <lumuscar+fdio@cisco.com>2019-03-23 14:13:53 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-03-24 14:11:17 +0100
commiteb323e056e747d71867cf965434811c1de925de2 (patch)
tree23a6096823d795efe448559cf0409a18ab47932d /hicn-light/src/core/mapMe.h
parent43562f9f02d35e5d540ab4028a0326c0c7cd4898 (diff)
[HICN-141] Definition of a C API for hicn-light
Change-Id: Id861f0abe58b1e3c9ba8cc76701da0f9c6801748 Signed-off-by: Luca Muscariello <lumuscar+fdio@cisco.com> Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'hicn-light/src/core/mapMe.h')
-rw-r--r--hicn-light/src/core/mapMe.h89
1 files changed, 0 insertions, 89 deletions
diff --git a/hicn-light/src/core/mapMe.h b/hicn-light/src/core/mapMe.h
deleted file mode 100644
index 39edd0bd7..000000000
--- a/hicn-light/src/core/mapMe.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file mapMe.h
- * @brief MAP-Me : AnchorLess Producer Mobility Management
- */
-
-#ifndef mapMe_h
-#define mapMe_h
-
-#ifdef WITH_MAPME
-
-#include <stdbool.h>
-#include <stdint.h>
-
-#include <src/io/hicnListener.h>
-
-#include <hicn/hicn.h>
-#include <src/utils/commands.h>
-
-struct mapme;
-typedef struct mapme MapMe;
-
-/**
- * @function MapMe_Init
- * @abstract Initializes MAP-Me state in the forwarder.
- * @return bool - Boolean informing about the success of MAP-Me initialization.
- */
-bool mapMe_Init(MapMe **mapme, Forwarder *Forwarder);
-
-/**
- * @function messageHandler_isMapMe
- * @abstract Identifies MAP-Me messages
- * @discussion This function can be used by the forwarder to dispatch MAP-Me
- * message to the appropriate processing function. Ideally this would be
- * done through hooks defined in the Init function.
- * @param [in] msgBuffer - The buffer to match
- * @return A boolean indicating whether message is a MAP-Me control message.
- */
-bool mapMe_isMapMe(const uint8_t *msgBuffer);
-
-/**
- * @function mapMe_handleMapMeMessage
- * @abstract Process a MAP-Me message.
- * @param [in] mapme - Pointer to the MAP-Me data structure.
- * @param [in] message - MAP-Me buffer
- * @param [in] conn_id - Ingress connection id
- */
-void mapMe_Process(const MapMe *mapme, const uint8_t *msgBuffer,
- unsigned conn_id);
-
-/**
- * @function mapMe_onConnectionAdded
- * @abstract Callback following the addition of the face though the control
- * protocol.
- * @discussion This callback triggers the sending of control packets by MAP-Me.
- * @param [in] mapme - Pointer to the MAP-Me data structure.
- * @param [in] conn - The newly added connection.
- */
-void mapMe_onConnectionAdded(const MapMe *mapme, const Connection *conn);
-
-/**
- * @function mapMe_getNextHops
- * @abstract return the nexthops to forward interests defined by mapme, it
- * covers also the case where local discovery mechanisms are trriggered.
- */
-NumberSet *mapMe_getNextHops(const MapMe *mapme, FibEntry *fibEntry,
- const Message *interest);
-
-hicn_mapme_type_t mapMe_PktType_To_LibHicnPktType(MessagePacketType type);
-
-MessagePacketType mapMe_LibHicnPktType_To_PktType(hicn_mapme_type_t type);
-
-#endif /* WITH_MAPME */
-
-#endif // mapMe_h