author | drw <drw> | 2005-04-01 20:32:01 (UTC) |
---|---|---|
committer | drw <drw> | 2005-04-01 20:32:01 (UTC) |
commit | cc4594a5c8d45d2f8d14c6ac1723a8ed39577f8f (patch) (unidiff) | |
tree | 3500347a14f4106be68712c4d4af49e3c69f7248 | |
parent | 629c1c9a366f56e9d98940f8dcd0778d039f1421 (diff) | |
download | opie-cc4594a5c8d45d2f8d14c6ac1723a8ed39577f8f.zip opie-cc4594a5c8d45d2f8d14c6ac1723a8ed39577f8f.tar.gz opie-cc4594a5c8d45d2f8d14c6ac1723a8ed39577f8f.tar.bz2 |
Fix linking issue with libipkg >= 0.99.146, at least until I can come up with a better way to do it...
-rw-r--r-- | noncore/settings/packagemanager/oipkg.cpp | 5 | ||||
-rw-r--r-- | noncore/settings/packagemanager/oipkg.h | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/noncore/settings/packagemanager/oipkg.cpp b/noncore/settings/packagemanager/oipkg.cpp index 127204d..7bc2040 100644 --- a/noncore/settings/packagemanager/oipkg.cpp +++ b/noncore/settings/packagemanager/oipkg.cpp | |||
@@ -37,8 +37,13 @@ _;:, .> :=|. This program is free software; you can | |||
37 | 37 | ||
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | #include <unistd.h> | 39 | #include <unistd.h> |
40 | 40 | ||
41 | extern "C" { | ||
42 | #include <libipkg.h> | ||
43 | }; | ||
44 | args_t m_ipkgArgs; // libipkg configuration arguments | ||
45 | |||
41 | const QString IPKG_CONF = "/etc/ipkg.conf"; // Fully-qualified name of Ipkg primary configuration file | 46 | const QString IPKG_CONF = "/etc/ipkg.conf"; // Fully-qualified name of Ipkg primary configuration file |
42 | const QString IPKG_CONF_DIR = "/etc/ipkg"; // Directory of secondary Ipkg configuration files | 47 | const QString IPKG_CONF_DIR = "/etc/ipkg"; // Directory of secondary Ipkg configuration files |
43 | const QString IPKG_PKG_PATH = "/usr/lib/ipkg/lists"; // Directory containing server package lists | 48 | const QString IPKG_PKG_PATH = "/usr/lib/ipkg/lists"; // Directory containing server package lists |
44 | const QString IPKG_STATUS_PATH = "usr/lib/ipkg/status"; // Destination status file location | 49 | const QString IPKG_STATUS_PATH = "usr/lib/ipkg/status"; // Destination status file location |
diff --git a/noncore/settings/packagemanager/oipkg.h b/noncore/settings/packagemanager/oipkg.h index 0263f50..4e390fa 100644 --- a/noncore/settings/packagemanager/oipkg.h +++ b/noncore/settings/packagemanager/oipkg.h | |||
@@ -38,12 +38,8 @@ _;:, .> :=|. This program is free software; you can | |||
38 | #include <qpe/config.h> | 38 | #include <qpe/config.h> |
39 | 39 | ||
40 | #include <qobject.h> | 40 | #include <qobject.h> |
41 | 41 | ||
42 | extern "C" { | ||
43 | #include <libipkg.h> | ||
44 | }; | ||
45 | |||
46 | // Ipkg execution options (m_ipkgExecOptions) | 42 | // Ipkg execution options (m_ipkgExecOptions) |
47 | #define FORCE_DEPENDS 0x0001 | 43 | #define FORCE_DEPENDS 0x0001 |
48 | #define FORCE_REMOVE 0x0002 | 44 | #define FORCE_REMOVE 0x0002 |
49 | #define FORCE_REINSTALL 0x0004 | 45 | #define FORCE_REINSTALL 0x0004 |
@@ -78,9 +74,9 @@ public: | |||
78 | const QString &destPath = QString::null ); | 74 | const QString &destPath = QString::null ); |
79 | 75 | ||
80 | OConfItem *findConfItem( OConfItem::Type type = OConfItem::NotDefined, | 76 | OConfItem *findConfItem( OConfItem::Type type = OConfItem::NotDefined, |
81 | const QString &name = QString::null ); | 77 | const QString &name = QString::null ); |
82 | 78 | ||
83 | bool executeCommand( OPackage::Command command = OPackage::NotDefined, | 79 | bool executeCommand( OPackage::Command command = OPackage::NotDefined, |
84 | const QStringList ¶meters = QStringList(), | 80 | const QStringList ¶meters = QStringList(), |
85 | const QString &destination = QString::null, | 81 | const QString &destination = QString::null, |
86 | const QObject *receiver = 0l, | 82 | const QObject *receiver = 0l, |
@@ -93,9 +89,8 @@ public: | |||
93 | void ipkgList( char *filelist ); | 89 | void ipkgList( char *filelist ); |
94 | 90 | ||
95 | private: | 91 | private: |
96 | Config *m_config; // Pointer to application configuration file | 92 | Config *m_config; // Pointer to application configuration file |
97 | args_t m_ipkgArgs; // libipkg configuration arguments | ||
98 | OConfItemList *m_confInfo; // Contains info from all Ipkg configuration files | 93 | OConfItemList *m_confInfo; // Contains info from all Ipkg configuration files |
99 | int m_ipkgExecOptions; // Bit-mapped flags for Ipkg execution options | 94 | int m_ipkgExecOptions; // Bit-mapped flags for Ipkg execution options |
100 | int m_ipkgExecVerbosity; // Ipkg execution verbosity level | 95 | int m_ipkgExecVerbosity; // Ipkg execution verbosity level |
101 | QString m_rootPath; // Directory path where the 'root' destination is located | 96 | QString m_rootPath; // Directory path where the 'root' destination is located |