pacman/src/pacman/conf.h

71 lines
2.0 KiB
C
Raw Normal View History

2005-03-14 20:51:43 -05:00
/*
* conf.h
*
* Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
2005-03-14 20:51:43 -05:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
*/
#ifndef _PM_CONF_H
#define _PM_CONF_H
2005-10-29 03:00:56 -04:00
typedef struct __config_t {
/* command line options */
char *root;
const char *dbpath;
const char *cachedir;
char *configfile;
unsigned short op;
unsigned short verbose;
unsigned short version;
unsigned short help;
unsigned short upgrade;
unsigned short noconfirm;
unsigned short noprogressbar;
unsigned short op_d_vertest;
unsigned short op_d_resolve;
unsigned short op_q_isfile;
unsigned short op_q_info;
unsigned short op_q_list;
unsigned short op_q_foreign;
unsigned short op_q_orphans;
unsigned short op_q_owns;
unsigned short op_q_search;
unsigned short op_q_changelog;
unsigned short op_s_clean;
unsigned short op_s_dependsonly;
unsigned short op_s_downloadonly;
list_t *op_s_ignore;
unsigned short op_s_info;
unsigned short op_s_sync;
unsigned short op_s_search;
unsigned short op_s_upgrade;
unsigned short group;
unsigned int flags;
unsigned short debug;
unsigned short noask;
unsigned int ask;
2005-10-29 03:00:56 -04:00
} config_t;
#define FREECONF(p) do { if(p) { config_free(p); p = NULL; } } while(0)
2005-10-29 03:18:40 -04:00
2005-11-07 08:14:19 -05:00
config_t *config_new(void);
2005-10-29 03:00:56 -04:00
int config_free(config_t *config);
void cb_db_register(char *section, pmdb_t *db);
2005-03-14 20:51:43 -05:00
#endif /* _PM_CONF_H */
/* vim: set ts=2 sw=2 noet: */