catalog_query.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef CATALOG_QUERY_H
00008 #define CATALOG_QUERY_H
00009
00010 #include <time.h>
00011 #include "jx.h"
00012
00017 #define CATALOG_HOST_DEFAULT "catalog.cse.nd.edu,backup-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
00034 struct catalog_query *catalog_query_create(const char *hosts, struct jx *filter_expr, time_t stoptime);
00035
00045 struct jx *catalog_query_read(struct catalog_query *q, time_t stoptime);
00046
00050 void catalog_query_delete(struct catalog_query *q);
00051
00058 int catalog_query_send_update(const char *hosts, const char *text);
00059
00060 #endif