catalog_query.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
00003 Copyright (C) 2005- The University of Notre Dame
00004 This software is distributed under the GNU General Public License.
00005 See the file COPYING for details.
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

Generated on 28 May 2014 for cctools by  doxygen 1.6.1