summaryrefslogtreecommitdiff
path: root/build/rpmfc.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-11-23 14:57:18 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-11-23 14:57:18 +0200
commit1a0968f31f18c627982b857fe717b54d691f0c78 (patch)
tree9ee2e50139a9354cd671e87acec8dd73a0d1597f /build/rpmfc.h
parent43d1baef0f8e95e9340802faebc7ffffe3421b2d (diff)
downloadrpm-1a0968f31f18c627982b857fe717b54d691f0c78.tar.gz
rpm-1a0968f31f18c627982b857fe717b54d691f0c78.tar.bz2
rpm-1a0968f31f18c627982b857fe717b54d691f0c78.zip
Add doxygen group for rpmfc, include in librpm + hacking docs
Diffstat (limited to 'build/rpmfc.h')
-rw-r--r--build/rpmfc.h33
1 files changed, 20 insertions, 13 deletions
diff --git a/build/rpmfc.h b/build/rpmfc.h
index 92ecbb43f..c4f958b1c 100644
--- a/build/rpmfc.h
+++ b/build/rpmfc.h
@@ -1,6 +1,11 @@
#ifndef _H_RPMFC_
#define _H_RPMFC_
+/** \ingroup rpmfc rpmbuild
+ * \file build/rpmfc.h
+ * Structures and methods for build-time file classification.
+ */
+
#include <magic.h>
#include <rpmlib.h> /* for rpmds, rpmSpec */
@@ -14,11 +19,11 @@ extern "C" {
extern int _rpmfc_debug;
-/**
+/** \ingroup rpmfc
*/
typedef struct rpmfc_s * rpmfc;
-/**
+/** \ingroup rpmfc
*/
enum FCOLOR_e {
RPMFC_BLACK = 0,
@@ -58,13 +63,15 @@ enum FCOLOR_e {
RPMFC_INCLUDE = (1 << 30),
RPMFC_ERROR = (1 << 31)
};
+/** \ingroup rpmfc
+ */
typedef enum FCOLOR_e FCOLOR_t;
-/**
+/** \ingroup rpmfc
*/
typedef struct rpmfcTokens_s * rpmfcToken;
-/**
+/** \ingroup rpmfc
* Return helper output.
* @param av helper argv (with possible macros)
* @param sb_stdin helper input
@@ -74,14 +81,14 @@ typedef struct rpmfcTokens_s * rpmfcToken;
int rpmfcExec(ARGV_t av, StringBuf sb_stdin, StringBuf * sb_stdoutp,
int failnonzero);
-/**
+/** \ingroup rpmfc
* Return file color given file(1) string.
* @param fmstr file(1) string
* @return file color
*/
int rpmfcColoring(const char * fmstr);
-/**
+/** \ingroup rpmfc
* Print results of file classification.
* @todo Remove debugging routine.
* @param msg message prefix (NULL for none)
@@ -90,20 +97,20 @@ int rpmfcColoring(const char * fmstr);
*/
void rpmfcPrint(const char * msg, rpmfc fc, FILE * fp);
-/**
+/** \ingroup rpmfc
* Destroy a file classifier.
* @param fc file classifier
* @return NULL always
*/
rpmfc rpmfcFree(rpmfc fc);
-/**
+/** \ingroup rpmfc
* Create a file classifier.
* @return new file classifier
*/
rpmfc rpmfcNew(void);
-/**
+/** \ingroup rpmfc
* Build file class dictionary and mappings.
* @param fc file classifier
* @param argv files to classify
@@ -112,14 +119,14 @@ rpmfc rpmfcNew(void);
*/
int rpmfcClassify(rpmfc fc, ARGV_t argv, int16_t * fmode);
-/**
+/** \ingroup rpmfc
* Build file/package dependency dictionary and mappings.
* @param fc file classifier
* @return 0 on success
*/
int rpmfcApply(rpmfc fc);
-/**
+/** \ingroup rpmfc
* Generate package dependencies.
* @param spec spec file control
* @param pkg package control
@@ -127,14 +134,14 @@ int rpmfcApply(rpmfc fc);
*/
int rpmfcGenerateDepends(const rpmSpec spec, Package pkg);
-/**
+/** \ingroup rpmfc
* Retrieve file classification provides
* @param fc file classifier
* @return rpmds dependency set of fc provides
*/
rpmds rpmfcProvides(rpmfc fc);
-/**
+/** \ingroup rpmfc
* Retrieve file classification requires
* @param fc file classifier
* @return rpmds dependency set of fc requires