00001 00005 /* GtkSQL -- an interactive graphical query tool for PostgreSQL 00006 * Copyright (C) 1998-2002 Lionel ULMER, Darryl Luff. 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00021 * ========================================================================== 00022 * 00023 */ 00024 00025 #ifndef __QUERYDATA_H__ 00026 #define __QUERYDATA_H__ 00027 00028 #define QDATA_KEY "QueryData" 00029 00031 typedef struct _queryData { 00032 int changed; 00033 char *filename; 00034 } QueryData; 00035 00037 QueryData *querydata_new(); 00038 00040 QueryData *querydata_free(QueryData *qd); 00041 00043 char *querydata_get_filename(QueryData *qd); 00044 00046 void querydata_set_changed(QueryData *qd, int c); 00047 00049 int querydata_is_changed(QueryData *qd); 00050 00052 void querydata_set_filename(QueryData *qd, char *fn); 00053 00055 void querydata_set_unchanged(QueryData *qd); 00056 00057 #endif