2003-07-21 18:27:44 +08:00
|
|
|
#ifndef __SNMAP_H__
|
|
|
|
#define __SNMAP_H__
|
|
|
|
|
|
|
|
#include "postgres.h"
|
|
|
|
|
2003-08-04 08:43:34 +08:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char *key;
|
|
|
|
Oid value;
|
2004-06-01 00:51:56 +08:00
|
|
|
Oid nsp;
|
2003-08-04 08:43:34 +08:00
|
|
|
} SNMapEntry;
|
2003-07-21 18:27:44 +08:00
|
|
|
|
2003-08-04 08:43:34 +08:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int len;
|
|
|
|
int reallen;
|
|
|
|
SNMapEntry *list;
|
|
|
|
} SNMap;
|
2003-07-21 18:27:44 +08:00
|
|
|
|
2003-08-04 08:43:34 +08:00
|
|
|
void addSNMap(SNMap * map, char *key, Oid value);
|
|
|
|
void addSNMap_t(SNMap * map, text *key, Oid value);
|
|
|
|
Oid findSNMap(SNMap * map, char *key);
|
|
|
|
Oid findSNMap_t(SNMap * map, text *key);
|
|
|
|
void freeSNMap(SNMap * map);
|
2003-07-21 18:27:44 +08:00
|
|
|
|
|
|
|
#endif
|