ictable.h
来自「IBE是一种非对称密码技术」· C头文件 代码 · 共 69 行
H
69 行
/* Copyright 2003-2006, Voltage Security, all rights reserved.
*/
#include "vibe.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "stringutil.h"
#ifndef _ICTABLE_H_
#define _ICTABLE_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
char *key;
char *value;
Pointer next;
} icTable;
/* Creates a table. You must free the result with icTableFree when you are
* done using it.
*/
int icTableCreate (
icTable **entry,
VoltLibCtx *libCtx
);
/* Frees all memory used by the table.
*/
void icTableFree (
icTable **table,
VoltLibCtx *libCtx
);
/* Associate the given key with the given value in the table. The table
* makes it's own copies of the key and value passed into it.
*/
int icTablePut (
icTable *table,
char *key,
char *value,
VoltLibCtx *libCtx
);
/* Gets the value associated with a reference. The value returned is
* owned by the icTable and is destroyed when the icTable is freed or
* when the value is replaced with another using icTablePut with the
* same reference.
* <p>If it can't find a table entry for the reference, it will set
* *value to NULL.
*/
void icTableGet (
icTable *table,
char *reference,
char **value,
VoltLibCtx *libCtx
);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?