00001
00002
00003
00004
00005
00006
00007 #ifndef CATALOG_QUERY_H
00008 #define CATALOG_QUERY_H
00009
00010 #include <time.h>
00011 #include "nvpair.h"
00012
00017 #define CATALOG_HOST_DEFAULT "catalog.cse.nd.edu"
00018 #define CATALOG_PORT_DEFAULT 9097
00019
00020 #define CATALOG_HOST (getenv("CATALOG_HOST") ? getenv("CATALOG_HOST") : CATALOG_HOST_DEFAULT )
00021 #define CATALOG_PORT (getenv("CATALOG_PORT") ? atoi(getenv("CATALOG_PORT")) : CATALOG_PORT_DEFAULT )
00022
00033 struct catalog_query *catalog_query_create(const char *host, int port, time_t stoptime);
00034
00043 struct nvpair *catalog_query_read(struct catalog_query *q, time_t stoptime);
00044
00048 void catalog_query_delete(struct catalog_query *q);
00049
00050 #endif