Blame doc/librpm/html/argv_8h_source.html

2ff057
2ff057
<html xmlns="http://www.w3.org/1999/xhtml">
2ff057
<head>
2ff057
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
2ff057
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2ff057
<meta name="generator" content="Doxygen 1.8.14"/>
2ff057
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2ff057
<title>rpm: argv.h Source File</title>
2ff057
<link href="tabs.css" rel="stylesheet" type="text/css"/>
2ff057
<script type="text/javascript" src="jquery.js"></script>
2ff057
<script type="text/javascript" src="dynsections.js"></script>
2ff057
<link href="doxygen.css" rel="stylesheet" type="text/css" />
2ff057
</head>
2ff057
<body>
2ff057
2ff057
2ff057
2ff057
 
2ff057
 
2ff057
  
2ff057
   
rpm
2ff057
    4.14.2
2ff057
   
2ff057
  
2ff057
 
2ff057
 
2ff057
2ff057
2ff057
2ff057
2ff057
<script type="text/javascript" src="menudata.js"></script>
2ff057
<script type="text/javascript" src="menu.js"></script>
2ff057
<script type="text/javascript">
2ff057
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
2ff057
$(function() {
2ff057
  initMenu('',false,false,'search.php','Search');
2ff057
});
2ff057
/* @license-end */</script>
2ff057
2ff057
2ff057
  
    2ff057
  • rpmio
  • 2ff057
    2ff057
    2ff057
    2ff057
      
    2ff057
    argv.h
    2ff057
    2ff057
    2ff057
    Go to the documentation of this file.
    1 #ifndef _H_ARGV_
    2 #define _H_ARGV_
    3 
    10 #include <stdio.h>
    11 #include <rpm/rpmtypes.h>
    12 
    13 #ifdef __cplusplus
    14 extern "C" {
    15 #endif
    16 
    17 typedef char ** ARGV_t;
    18 typedef char * const *ARGV_const_t;
    19 
    20 typedef int * ARGint_t;
    21 struct ARGI_s {
    22  unsigned nvals;
    24 };
    25 typedef struct ARGI_s * ARGI_t;
    26 typedef struct ARGI_s const * const ARGI_const_t;
    27 
    34 void argvPrint(const char * msg, ARGV_const_t argv, FILE * fp);
    35 
    41 ARGI_t argiFree(ARGI_t argi);
    42 
    43 
    48 ARGV_t argvNew(void);
    49 
    55 ARGV_t argvFree(ARGV_t argv);
    56 
    62 int argiCount(ARGI_const_t argi);
    63 
    70 
    76 int argvCount(ARGV_const_t argv);
    77 
    83 ARGV_t argvData(ARGV_t argv);
    84 
    91 int argvCmp(const void * a, const void * b);
    92 
    99 int argvSort(ARGV_t argv, int (*compar)(const void *, const void *));
    100 
    108 ARGV_t argvSearch(ARGV_const_t argv, const char *val,
    109  int (*compar)(const void *, const void *));
    110 
    118 int argiAdd(ARGI_t * argip, int ix, int val);
    119 
    126 int argvAdd(ARGV_t * argvp, const char *val);
    127 
    134 int argvAddNum(ARGV_t * argvp, int val);
    135 
    142 int argvAppend(ARGV_t * argvp, ARGV_const_t av);
    143 
    146  ARGV_SKIPEMPTY = (1 << 0), /* omit empty strings from result */
    147 };
    148 
    150 
    158 ARGV_t argvSplitString(const char * str, const char * seps, argvFlags flags);
    159 
    167 int argvSplit(ARGV_t * argvp, const char * str, const char * seps);
    168 
    175 char *argvJoin(ARGV_const_t argv, const char *sep);
    176 
    177 #ifdef __cplusplus
    178 }
    179 #endif
    180 
    181 #endif /* _H_ARGV_ */
    char ** ARGV_t
    Definition: argv.h:17
    2ff057
    ARGI_t argiFree(ARGI_t argi)
    Destroy an argi array.
    2ff057
    ARGint_t vals
    Definition: argv.h:23
    2ff057
    argvFlags_e
    Definition: argv.h:144
    2ff057
    unsigned nvals
    Definition: argv.h:22
    2ff057
    int argvSort(ARGV_t argv, int(*compar)(const void *, const void *))
    Sort an argv array.
    2ff057
    int argvCount(ARGV_const_t argv)
    Return no.
    2ff057
    struct ARGI_s * ARGI_t
    Definition: argv.h:25
    2ff057
    struct ARGI_s const *const ARGI_const_t
    Definition: argv.h:26
    2ff057
    int * ARGint_t
    Definition: argv.h:20
    2ff057
    ARGV_t argvFree(ARGV_t argv)
    Destroy an argv array.
    2ff057
    int argvAdd(ARGV_t *argvp, const char *val)
    Add a string to an argv array.
    2ff057
    uint32_t rpmFlags
    Definition: rpmtypes.h:42
    2ff057
    int argvCmp(const void *a, const void *b)
    Compare argv arrays (qsort/bsearch).
    2ff057
    ARGV_t argvNew(void)
    Create an empty argv array.
    2ff057
    int argvAddNum(ARGV_t *argvp, int val)
    Add a number to an argv array (converting to a string).
    2ff057
    ARGV_t argvSplitString(const char *str, const char *seps, argvFlags flags)
    Split a string into an argv array.
    2ff057
    2ff057
    ARGint_t argiData(ARGI_const_t argi)
    Return data from argi array.
    2ff057
    char *const * ARGV_const_t
    Definition: argv.h:18
    2ff057
    int argiCount(ARGI_const_t argi)
    Return no.
    2ff057
    int argiAdd(ARGI_t *argip, int ix, int val)
    Add an int to an argi array.
    2ff057
    ARGV_t argvData(ARGV_t argv)
    Return data from argv array.
    2ff057
    ARGV_t argvSearch(ARGV_const_t argv, const char *val, int(*compar)(const void *, const void *))
    Find an element in an argv array.
    2ff057
    int argvAppend(ARGV_t *argvp, ARGV_const_t av)
    Append one argv array to another.
    2ff057
    void argvPrint(const char *msg, ARGV_const_t argv, FILE *fp)
    Print argv array elements.
    2ff057
    int argvSplit(ARGV_t *argvp, const char *str, const char *seps)
    Split a string into an argv array.
    2ff057
    Definition: argv.h:21
    2ff057
    rpmFlags argvFlags
    Definition: argv.h:149
    2ff057
    2ff057
    char * argvJoin(ARGV_const_t argv, const char *sep)
    Join an argv array into a string.
    2ff057
    2ff057
    2ff057

    <address class="footer"><small>
    2ff057
    Generated by  
    2ff057
    doxygen
    2ff057
     1.8.14
    2ff057
    </small></address>
    2ff057
    </body>
    2ff057
    </html>