]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - state.h
Use solver to check for problems and produce a list of package transactions
[cygwin-apps/setup.git] / state.h
diff --git a/state.h b/state.h
index 5255ef9b35a8b072dbfc634422ab811fd6def087..6632d67a14bf4c5aa2066970bac1e0b712f1638a 100644 (file)
--- a/state.h
+++ b/state.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, Red Hat, Inc.
+ * Copyright (c) 2000, 2001, Red Hat, Inc.
  *
  *     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
  *
  */
 
+#ifndef SETUP_STATE_H
+#define SETUP_STATE_H
+
 /* The purpose of this file is to contain all the global variables
    that define the "state" of the install, that is, all the
    information that the user has provided so far.  These are set by
-   the various dialogs and used by the various actions. */
+   the various dialogs and used by the various actions. 
+   Note that this is deprecated. Persistent settings should be accessed
+   via a class that stores them cross-installs, and non-persistent settings
+   directly via the appropriate class. One of the reasons for this is that
+   non-trivial types would require this file to include appropriate headers,
+   making all of setup.exe rebuild for potentially minor changes.
+ */
 
-extern int     source;
+#include <string>
 
-extern char *  root_dir;
-extern int     root_text;
-extern int     root_scope;
+enum attend_mode { attended = 0, unattended, chooseronly };
+extern enum attend_mode unattended_mode;
+extern bool rebootneeded;
 
-extern int     net_method;
-extern char *  net_proxy_host;
-extern int     net_proxy_port;
-extern char *  net_proxy_user;
-extern char *  net_proxy_passwd;
+extern int source;
 
-extern char *  mirror_site;
-extern char *  other_url;
+extern std::string local_dir;
 
-extern int     trust_level;
+extern int root_text;
+extern int root_scope;
+extern int root_menu;
+extern int root_desktop;
 
-#define MIRROR_SITE (mirror_site ? mirror_site : other_url)
+#endif /* SETUP_STATE_H */
This page took 0.02807 seconds and 5 git commands to generate.