NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
strategy-code.c File Reference
#include "strategy-code.h"
#include "../strategyapi/api.h"

Functions

void StrategyCode_Ref (StrategyCode *sc)
 
void StrategyCode_Unref (StrategyCode *sc)
 
bool SgGetJSON (SgCtx *ctx, const char *path, int index, int64_t *dst)
 Retrieve JSON parameter integer value. More...
 
const struct rte_bpf_xsym * SgInitGetXsyms (uint32_t *nXsyms)
 

Variables

StrategyCode_FreeFunc StrategyCode_Free
 
StrategyCode_GetJSONFunc StrategyCode_GetJSON
 

Function Documentation

◆ SgGetJSON()

bool SgGetJSON ( SgCtx ctx,
const char *  path,
int  index,
int64_t *  dst 
)

Retrieve JSON parameter integer value.

Parameters
pathJSON property path, using '.' separator for nested path. Due to eBPF loader limitation, this string should be written as a mutable char[] allocated on stack. A string literal may cause "resolve_xsym(.L.str) error -2".
indexindex into JSON array, or SGJSON_SCALAR to retrieve scalar value, or SGJSON_LEN to retrieve array length.
dstdestination pointer.
Returns
whether success.
Precondition
Only available in SgInit .

◆ SgInitGetXsyms()

const struct rte_bpf_xsym* SgInitGetXsyms ( uint32_t *  nXsyms)

◆ StrategyCode_Ref()

void StrategyCode_Ref ( StrategyCode sc)

◆ StrategyCode_Unref()

void StrategyCode_Unref ( StrategyCode sc)

Variable Documentation

◆ StrategyCode_Free

StrategyCode_FreeFunc StrategyCode_Free

◆ StrategyCode_GetJSON

StrategyCode_GetJSONFunc StrategyCode_GetJSON