summaryrefslogtreecommitdiff
path: root/rpmio/rpmmessages.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-06-09 21:24:37 +0000
committerjbj <devnull@localhost>2000-06-09 21:24:37 +0000
commit4afe94756b1d4960b946c88912b458c04c856e9e (patch)
tree94178233b6e16714eee257b1fd47aef2c5f85945 /rpmio/rpmmessages.h
parent685d3e79b097371c7c222a224716e88d38fe30bd (diff)
downloadlibrpm-tizen-4afe94756b1d4960b946c88912b458c04c856e9e.tar.gz
librpm-tizen-4afe94756b1d4960b946c88912b458c04c856e9e.tar.bz2
librpm-tizen-4afe94756b1d4960b946c88912b458c04c856e9e.zip
- make librpmio standalone.
CVS patchset: 3824 CVS date: 2000/06/09 21:24:37
Diffstat (limited to 'rpmio/rpmmessages.h')
-rw-r--r--rpmio/rpmmessages.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/rpmio/rpmmessages.h b/rpmio/rpmmessages.h
new file mode 100644
index 000000000..67f2d1cc9
--- /dev/null
+++ b/rpmio/rpmmessages.h
@@ -0,0 +1,43 @@
+#ifndef H_RPMMESSAGES
+#define H_RPMMESSAGES
+
+#define RPMMESS_DEBUG 1
+#define RPMMESS_VERBOSE 2
+#define RPMMESS_NORMAL 3
+#define RPMMESS_WARNING 4
+#define RPMMESS_ERROR 5
+#define RPMMESS_FATALERROR 6
+
+#define RPMMESS_QUIET (RPMMESS_NORMAL + 1)
+
+typedef enum rpmCallbackType_e {
+ RPMCALLBACK_INST_PROGRESS, RPMCALLBACK_INST_START,
+ RPMCALLBACK_INST_OPEN_FILE, RPMCALLBACK_INST_CLOSE_FILE,
+ RPMCALLBACK_TRANS_PROGRESS, RPMCALLBACK_TRANS_START, RPMCALLBACK_TRANS_STOP,
+ RPMCALLBACK_UNINST_PROGRESS, RPMCALLBACK_UNINST_START, RPMCALLBACK_UNINST_STOP
+} rpmCallbackType;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void * (*rpmCallbackFunction)(const void * h,
+ const rpmCallbackType what,
+ const unsigned long amount,
+ const unsigned long total,
+ const void * pkgKey, void * data);
+
+void urlSetCallback(rpmCallbackFunction notify, void *notifyData, int notifyCount);
+
+void rpmIncreaseVerbosity(void);
+void rpmSetVerbosity(int level);
+int rpmGetVerbosity(void);
+int rpmIsVerbose(void);
+int rpmIsDebug(void);
+void rpmMessage(int level, const char * format, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* H_RPMMESSAGES */