summaryrefslogtreecommitdiff
path: root/rpmio/rpmmessages.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-08-30 17:47:53 +0000
committerjbj <devnull@localhost>2000-08-30 17:47:53 +0000
commit679aca04c8ffd077d3cd8e2ab3279899ee239b9a (patch)
treef34e024137297bd43065d2df836fed392e2eca92 /rpmio/rpmmessages.h
parentc7b24dad58de9de732247194935112066908ff4c (diff)
downloadlibrpm-tizen-679aca04c8ffd077d3cd8e2ab3279899ee239b9a.tar.gz
librpm-tizen-679aca04c8ffd077d3cd8e2ab3279899ee239b9a.tar.bz2
librpm-tizen-679aca04c8ffd077d3cd8e2ab3279899ee239b9a.zip
Doxygen annotations.
CVS patchset: 4147 CVS date: 2000/08/30 17:47:53
Diffstat (limited to 'rpmio/rpmmessages.h')
-rw-r--r--rpmio/rpmmessages.h50
1 files changed, 41 insertions, 9 deletions
diff --git a/rpmio/rpmmessages.h b/rpmio/rpmmessages.h
index 4c337033f..d2eaeef89 100644
--- a/rpmio/rpmmessages.h
+++ b/rpmio/rpmmessages.h
@@ -5,13 +5,16 @@
* \file rpmio/rpmmessages.h
*/
-#define RPMMESS_DEBUG 1
-#define RPMMESS_VERBOSE 2
-#define RPMMESS_NORMAL 3
-#define RPMMESS_WARNING 4
-#define RPMMESS_ERROR 5
-#define RPMMESS_FATALERROR 6
-
+/**
+ */
+typedef enum rpmmsgLevel_e {
+ RPMMESS_DEBUG = 1, /*!< */
+ RPMMESS_VERBOSE = 2, /*!< */
+ RPMMESS_NORMAL = 3, /*!< */
+ RPMMESS_WARNING = 4, /*!< */
+ RPMMESS_ERROR = 5, /*!< */
+ RPMMESS_FATALERROR = 6 /*!< */
+} rpmmsgLevel;
#define RPMMESS_QUIET (RPMMESS_NORMAL + 1)
typedef enum rpmCallbackType_e {
@@ -31,7 +34,12 @@ typedef enum rpmCallbackType_e {
extern "C" {
#endif
+/**
+ */
typedef void * rpmCallbackData;
+
+/**
+ */
typedef void * (*rpmCallbackFunction)(const void * h,
const rpmCallbackType what,
const unsigned long amount,
@@ -39,15 +47,39 @@ typedef void * (*rpmCallbackFunction)(const void * h,
const void * pkgKey,
rpmCallbackData data);
-void urlSetCallback(rpmCallbackFunction notify, rpmCallbackData notifyData,
+/**
+ */
+void urlSetCallback(rpmCallbackFunction notify, rpmCallbackData 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, ...);
+
+/**
+ */
+#if defined(__GNUC__)
+void rpmMessage(rpmmsgLevel level, const char * format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
+#else
+void rpmMessage(rpmmsgLevel level, const char * format, ...);
+#endif
+
#ifdef __cplusplus
}