Skip to content

Commit

Permalink
Fix doxygen warnings
Browse files Browse the repository at this point in the history
Make shure parameter descriptions in doc strings match the functions
  • Loading branch information
ffesti committed Feb 17, 2015
1 parent ae251c3 commit b151b52
Show file tree
Hide file tree
Showing 25 changed files with 65 additions and 38 deletions.
9 changes: 5 additions & 4 deletions build/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ static rpmRC parseForDev(char * buf, FileEntry cur)

/**
* Parse %attr and %defattr from file manifest.
* @param pool string pool
* @param buf current spec file line
* @param def parse for %defattr or %attr?
* @param entry file entry data (current / default)
Expand Down Expand Up @@ -862,7 +863,7 @@ static int isHardLink(FileListRec flp, FileListRec tlp)
/**
* Verify that file attributes scope over hardlinks correctly.
* If partial hardlink sets are possible, then add tracking dependency.
* @param fl package file records
* @param files package file records
* @return 1 if partial hardlink sets can exist, 0 otherwise.
*/
static int checkHardLinks(FileRecords files)
Expand Down Expand Up @@ -901,9 +902,8 @@ static int seenHardLink(FileRecords files, FileListRec flp, rpm_ino_t *fileid)
* @todo Should directories have %doc/%config attributes? (#14531)
* @todo Remove RPMTAG_OLDFILENAMES, add dirname/basename instead.
* @param fl package file tree walk data
* @retval *fip file info for package
* @param h
* @param isSrc
* @param pkg (sub) package
* @param isSrc pass 1 for source packages 0 otherwise
*/
static void genCpioListAndHeader(FileList fl, Package pkg, int isSrc)
{
Expand Down Expand Up @@ -2019,6 +2019,7 @@ rpmRC processSourceFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags)

/**
* Check packaged file list against what's in the build root.
* @param buildRoot path of build root
* @param fileList packaged file list
* @return -1 if skipped, 0 on OK, 1 on error
*/
Expand Down
4 changes: 2 additions & 2 deletions build/parsePrep.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ static int doSetupMacro(rpmSpec spec, const char *line)
/**
* Parse %patch line.
* This supports too many crazy syntaxes:
* - %patchN is equal to %patch -P<N>
* - -P<N> -P<N+1>... can be used to apply several patch on a single line
* - %patchN is equal to %patch -P\<N\>
* - -P\<N\> -P\<N+1\>... can be used to apply several patch on a single line
* - Any trailing arguments are treated as patch numbers
* - Any combination of the above, except unless at least one -P is specified,
* %patch is treated as %patch -P0 so that "%patch 1" is actually
Expand Down
1 change: 0 additions & 1 deletion build/rpmfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ static const char *parseDep(char **depav, int depac,
* @param ix file index
* @param nsdep class name for interpreter (e.g. "perl")
* @param depname "provides" or "requires"
* @param depsp fc->provides or fc->requires
* @param dsContext RPMSENSE_FIND_PROVIDES or RPMSENSE_FIND_REQUIRES
* @param tagN RPMTAG_PROVIDENAME or RPMTAG_REQUIRENAME
* @return 0 on success
Expand Down
5 changes: 3 additions & 2 deletions lib/cpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ rpmcpio_t rpmcpioFree(rpmcpio_t cpio);

/**
* Write cpio header.
* @retval fsm file path and stat info
* @param st
* @param cpio cpio archive
* @param path file name
* @param st stat struct with meta data
* @return 0 on success
*/
RPM_GNUC_INTERNAL
Expand Down
1 change: 1 addition & 0 deletions lib/depends.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ static int rpmdbProvides(rpmts ts, depCache dcache, rpmds dep)
/**
* Check dep for an unsatisfied dependency.
* @param ts transaction set
* @param dcache dependency cache
* @param dep dependency
* @return 0 if satisfied, 1 if not satisfied
*/
Expand Down
3 changes: 2 additions & 1 deletion lib/formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ static char * hexFormat(rpmtd td)
}

/**
* @param td tag data container
* @param td tag data container
* @param strftimeFormat format string
* @return formatted string
*/
static char * realDateFormat(rpmtd td, const char * strftimeFormat)
Expand Down
2 changes: 1 addition & 1 deletion lib/fprint.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ int fpLookup(fingerPrintCache cache,
/**
* Return hash value for a finger print.
* Hash based on dev and inode only!
* @param key pointer to finger print entry
* @param fp pointer to finger print entry
* @return hash value
*/
static unsigned int fpHashFunction(const fingerPrint * fp)
Expand Down
5 changes: 3 additions & 2 deletions lib/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ typedef struct dnli_s {

/** \ingroup payload
* Destroy directory name iterator.
* @param a directory name iterator
* @param dnli directory name iterator
* @retval NULL always
*/
static DNLI_t dnlFreeIterator(DNLI_t dnli)
Expand Down Expand Up @@ -371,7 +371,8 @@ static int fsmMknod(const char *path, mode_t mode, dev_t dev)

/**
* Create (if necessary) directories not explicitly included in package.
* @param dnli file state machine data
* @param files file data
* @param fs file states
* @param plugins rpm plugins handle
* @return 0 on success
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/fsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ typedef struct rpmpsm_s * rpmpsm;
/**
* Execute a file actions for package
* @param ts transaction set
* @param fi transaction element file info
* @param te transaction set element
* @param files transaction element file info
* @param psm owner psm (or NULL)
* @retval archiveSize pointer to archive size
* @retval failedFile pointer to first file name that failed (malloced)
* @return 0 on success
*/
Expand Down
1 change: 0 additions & 1 deletion lib/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,6 @@ int headerIsEntry(Header h, rpmTagVal tag)
* @todo Permit retrieval of regions other than HEADER_IMUTABLE.
* @param entry header entry
* @param td tag data container
* @param minMem string pointers refer to header memory?
* @param flags flags to control memory allocation
* @return 1 on success, otherwise error.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ int headerPut(Header h, rpmtd td, headerPutFlags flags);
* @return 1 on success, 0 on failure
*
*/
int headerPutBin(Header h, rpmTagVal tag, const uint8_t *val, rpm_count_t size);
int headerPutString(Header h, rpmTagVal tag, const char *val);
int headerPutStringArray(Header h, rpmTagVal tag, const char **val, rpm_count_t size);
int headerPutBin(Header h, rpmTagVal tag, const uint8_t *val, rpm_count_t size);
int headerPutChar(Header h, rpmTagVal tag, const char *val, rpm_count_t size);
int headerPutUint8(Header h, rpmTagVal tag, const uint8_t *val, rpm_count_t size);
int headerPutUint16(Header h, rpmTagVal tag, const uint16_t *val, rpm_count_t size);
Expand Down
2 changes: 1 addition & 1 deletion lib/headerutil.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** \ingroup rpmdb
* \file lib/hdrNVR.c
* \file lib/headerutil.c
*/

#include "system.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int headerFindSpec(Header h);
/**
* Relocate files in header.
* @todo multilib file dispositions need to be checked.
* @param relocations relocations
* @param relocs relocations
* @param numRelocations number of relocations
* @param fs file state set
* @param h package header to relocate
Expand Down
1 change: 1 addition & 0 deletions lib/order.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ static inline int addSingleRelation(rpmte p,
/**
* Record next "q <- p" relation (i.e. "p" requires "q").
* @param ts transaction set
* @param al packages list
* @param p predecessor (i.e. package that "Requires: q")
* @param requires relation
* @return 0 always
Expand Down
1 change: 1 addition & 0 deletions lib/rpmal.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ rpmte * rpmalAllSatisfiesDepend(const rpmal al, const rpmds ds);
/**
* Lookup best provider for a dependency in the available list
* @param al available list
* @param te transaction element
* @param ds dependency set
* @return best provider for the dependency, NULL if none
*/
Expand Down
8 changes: 4 additions & 4 deletions lib/rpmarchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ char * rpmfileStrerror(int rc);
* rpmfiArchiveClose() to get the trailer written.
* rpmfiSetFX() is not supported for this type of iterator.
* @param fd file
* @param fi file info
* @param files file info
* @return new rpmfi
*/
rpmfi rpmfiNewArchiveWriter(FD_t fd, rpmfiles files);
Expand All @@ -78,7 +78,7 @@ rpmfi rpmfiNewArchiveWriter(FD_t fd, rpmfiles files);
* rpmfiArchiveReadToFile() when they are visited with rpmfiNext().
* rpmfiSetFX() is not supported for this type of iterator.
* @param fd file
* @param fi file info
* @param files file info
* @param itype how to handle hard links. See rpmFileIter.
* @return new rpmfi
*/
Expand All @@ -102,7 +102,7 @@ rpm_loff_t rpmfiArchiveTell(rpmfi fi);
* Write content into current file in archive
* @param fi file info
* @param buf pointer to content
* @prama size number of bytes to write
* @param size number of bytes to write
* @return bytes actually written
*/
size_t rpmfiArchiveWrite(rpmfi fi, const void * buf, size_t size);
Expand All @@ -119,7 +119,7 @@ int rpmfiArchiveWriteFile(rpmfi fi, FD_t fd);
* Read content from current file in archive
* @param fi file info
* @param buf pointer to buffer
* @prama size number of bytes to read
* @param size number of bytes to read
* @return bytes actually read
*/
size_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size);
Expand Down
2 changes: 2 additions & 0 deletions lib/rpmdb_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ void rpmdbUniqIterator(rpmdbMatchIterator mi);
* all packages that header numbers are in hdrNums.
* @param mi rpm database iterator
* @param hdrNums hash of package numbers
* @param neg mode
* return 0 on success, 1 on failure (bad args)
*/
int rpmdbFilterIterator(rpmdbMatchIterator mi, packageHash hdrNums, int neg);
Expand Down Expand Up @@ -195,6 +196,7 @@ void rpmdbSetIteratorIndex(rpmdbMatchIterator mi, unsigned int ix);
/** \ingroup rpmdb
* Return offset of package with given index.
* @param mi rpm database iterator
* @param ix index
* @return package offset
*/
RPM_GNUC_INTERNAL
Expand Down
2 changes: 1 addition & 1 deletion lib/rpmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ typedef rpmFlags rpmsenseFlags;
/** \ingroup rpmds
* Return only those flags allowed for given type of dependencies
* @param tagN type of dependency
* @param flags flags
* @param Flags flags
* @return flags filtered to allowed bits
*/
rpmsenseFlags rpmSanitizeDSFlags(rpmTagVal tagN, rpmsenseFlags Flags);
Expand Down
2 changes: 2 additions & 0 deletions lib/rpmfi.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const char * rpmfiFN(rpmfi fi);
* The file name may have "." prefixed but is then interpreted as a global
* path without the prefixing "."
* @param fi file info set iterator
* @param fn file name
* @return file index or -1
*/
int rpmfiFindFN(rpmfi fi, const char * fn);
Expand Down Expand Up @@ -121,6 +122,7 @@ const char * rpmfiOFN(rpmfi fi);
* in the rpmfi. The file name may have "." prefixed but is then interpreted
* as a global path without the prefixing "."
* @param fi file info set iterator
* @param fn file name
* @return file index or -1
*/
int rpmfiFindOFN(rpmfi fi, const char * fn);
Expand Down
14 changes: 8 additions & 6 deletions lib/rpmfiles.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ rpm_count_t rpmfilesDC(rpmfiles fi);
* Return file index of the given file name or -1 if file is not in the rpmfi.
* The file name may have "." prefixed but is then interpreted as a global
* path without the prefixing "."
* @param fi file info set
* @param files file info set
* @param fn file name
* @return file index or -1
*/
int rpmfilesFindFN(rpmfiles files, const char * fn);
Expand All @@ -211,7 +212,8 @@ int rpmfilesFindFN(rpmfiles files, const char * fn);
* Return file index of the given original file name or -1 if file is not
* in the rpmfi. The file name may have "." prefixed but is then interpreted
* as a global path without the prefixing "."
* @param fi file info set
* @param files file info set
* @param fn file name
* @return file index or -1
*/
int rpmfilesFindOFN(rpmfiles files, const char * fn);
Expand All @@ -227,7 +229,7 @@ int rpmfilesDigestAlgo(rpmfiles fi);

/** \ingroup rpmfiles
* Return union of all file color bits from file info set.
* @param fi file info set
* @param files file info set
* @return color
*/
rpm_color_t rpmfilesColor(rpmfiles files);
Expand Down Expand Up @@ -258,7 +260,7 @@ const char * rpmfilesBN(rpmfiles fi, int ix);
* you'd catenate the results of rpmfilesDN(f, rpmfilesDI(f, X)) and
* rpmfilesBN(f, X).
* @param fi file info set
* @param ix directory index
* @param jx directory index
* @return directory, NULL on invalid
*/
const char * rpmfilesDN(rpmfiles fi, int jx);
Expand Down Expand Up @@ -303,7 +305,7 @@ const char * rpmfilesOBN(rpmfiles fi, int ix);
* you'd catenate the results of rpmfilesODN(f, rpmfilesODI(f, X)) and
* rpmfilesOBN(f, X).
* @param fi file info set
* @param ix directory index
* @param jx directory index
* @return directory, NULL on invalid
*/
const char * rpmfilesODN(rpmfiles fi, int jx);
Expand Down Expand Up @@ -420,7 +422,7 @@ rpm_mode_t rpmfilesFMode(rpmfiles fi, int ix);
* @param fi file info set
* @param ix file index
* @retval algo digest hash algorithm used (pass NULL to ignore)
* @retval diglen digest hash length (pass NULL to ignore)
* @retval len digest hash length (pass NULL to ignore)
* @return file digest, NULL on invalid
*/
const unsigned char * rpmfilesFDigest(rpmfiles fi, int ix, int *algo, size_t *len);
Expand Down
4 changes: 2 additions & 2 deletions lib/rpmplugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ rpmRC rpmpluginsCallFsmFilePost(rpmPlugins plugins, rpmfi fi, const char* path,
* @param plugins plugins structure
* @param fi file info iterator (or NULL)
* @param path file object current path
* @param path file object destination path
* @param file_mode file object mode
* @param dest file object destination path
* @param mode file object mode
* @param op file operation + associated flags
* @return RPMRC_OK on success, RPMRC_FAIL otherwise
*/
Expand Down
1 change: 1 addition & 0 deletions lib/signature.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int rpmWriteSignature(FD_t fd, Header h);
* @param keyring keyring handle
* @param sigtd signature tag data container
* @param sig signature/pubkey parameters
* @param ctx digest context
* @retval result detailed text result of signature verification
* (malloc'd)
* @return result of signature verification
Expand Down
Loading

0 comments on commit b151b52

Please sign in to comment.