rpm  5.4.14
Macros | Functions | Variables
rpmhdr-rb.c File Reference
#include "system.h"
#include "rpm-rb.h"
#include "rpmds-rb.h"
#include "rpmfi-rb.h"
#include "rpmhdr-rb.h"
#include <rpmtag.h>
#include <rpmtypes.h>
#include <rpmds.h>
#include <rpmfi.h>
#include <rpmio.h>
#include <rpmcli.h>
#include "../debug.h"
Include dependency graph for rpmhdr-rb.c:

Go to the source code of this file.

Macros

#define _RPMDS_INTERNAL
 

Functions

static voidrpmhdr_ptr (VALUE s)
 
static VALUE rpmhdrLoadTag (Header h, const char *name)
 
static VALUE rpmhdr_sprintf (VALUE s, VALUE v)
 
static VALUE rpmhdr_getorigin (VALUE s)
 
static VALUE rpmhdr_setorigin (VALUE s, VALUE v)
 
static VALUE rpmhdr_ds (int argc, VALUE *argv, VALUE s)
 
static VALUE rpmhdr_fi (int argc, VALUE *argv, VALUE s)
 
static void initMethods (VALUE klass)
 
static VALUE rpmhdr_debug_get (VALUE s)
 
static VALUE rpmhdr_debug_set (VALUE s, VALUE v)
 
static VALUE rpmhdr__get (VALUE s, VALUE v)
 
static void initProperties (VALUE klass)
 
static void rpmhdr_free (Header h)
 
static VALUE rpmhdr_new (int argc, VALUE *argv, VALUE s)
 
void Init_rpmhdr (void)
 
VALUE rpmrb_NewHdr (void *_h)
 

Variables

VALUE rpmhdrClass
 
static int _debug = 0
 

Macro Definition Documentation

#define _RPMDS_INTERNAL

Definition at line 17 of file rpmhdr-rb.c.

Function Documentation

void Init_rpmhdr ( void  )

Definition at line 249 of file rpmhdr-rb.c.

References _debug, fprintf(), initMethods(), initProperties(), rpmhdr_new(), and rpmhdrClass.

static void initMethods ( VALUE  klass)
static

Definition at line 177 of file rpmhdr-rb.c.

References rpmhdr_ds(), rpmhdr_fi(), rpmhdr_getorigin(), rpmhdr_setorigin(), and rpmhdr_sprintf().

Referenced by Init_rpmhdr().

static void initProperties ( VALUE  klass)
static

Definition at line 216 of file rpmhdr-rb.c.

References rpmhdr__get(), rpmhdr_debug_get(), and rpmhdr_debug_set().

Referenced by Init_rpmhdr().

static VALUE rpmhdr__get ( VALUE  s,
VALUE  v 
)
static

Definition at line 204 of file rpmhdr-rb.c.

References _debug, fprintf(), h, rpmhdr_ptr(), and rpmhdrLoadTag().

Referenced by initProperties().

static VALUE rpmhdr_debug_get ( VALUE  s)
static

Definition at line 188 of file rpmhdr-rb.c.

References _debug, and fprintf().

Referenced by initProperties().

static VALUE rpmhdr_debug_set ( VALUE  s,
VALUE  v 
)
static

Definition at line 196 of file rpmhdr-rb.c.

References _debug, and fprintf().

Referenced by initProperties().

static VALUE rpmhdr_ds ( int  argc,
VALUE *  argv,
VALUE  s 
)
static

Definition at line 139 of file rpmhdr-rb.c.

References _debug, flags, fprintf(), h, rpmdsNew(), rpmhdr_ptr(), rpmrb_NewDs(), RPMTAG_PROVIDENAME, and tag.

Referenced by initMethods().

static VALUE rpmhdr_fi ( int  argc,
VALUE *  argv,
VALUE  s 
)
static

Definition at line 158 of file rpmhdr-rb.c.

References _debug, flags, fprintf(), h, NULL, rpmfiNew(), rpmhdr_ptr(), rpmrb_NewFi(), RPMTAG_BASENAMES, and tag.

Referenced by initMethods().

static void rpmhdr_free ( Header  h)
static

Definition at line 225 of file rpmhdr-rb.c.

References _debug, fprintf(), and headerFree.

Referenced by rpmhdr_new(), and rpmrb_NewHdr().

static VALUE rpmhdr_getorigin ( VALUE  s)
static

Definition at line 116 of file rpmhdr-rb.c.

References _debug, fprintf(), h, headerGetOrigin(), and rpmhdr_ptr().

Referenced by initMethods().

static VALUE rpmhdr_new ( int  argc,
VALUE *  argv,
VALUE  s 
)
static

Definition at line 234 of file rpmhdr-rb.c.

References _debug, fprintf(), h, headerNew(), and rpmhdr_free().

Referenced by Init_rpmhdr().

static void* rpmhdr_ptr ( VALUE  s)
static

Definition at line 35 of file rpmhdr-rb.c.

References ptr.

Referenced by rpmhdr__get(), rpmhdr_ds(), rpmhdr_fi(), rpmhdr_getorigin(), rpmhdr_setorigin(), and rpmhdr_sprintf().

static VALUE rpmhdr_setorigin ( VALUE  s,
VALUE  v 
)
static

Definition at line 127 of file rpmhdr-rb.c.

References _debug, fprintf(), h, headerGetOrigin(), headerSetOrigin(), rpmhdr_ptr(), and void.

Referenced by initMethods().

static VALUE rpmhdr_sprintf ( VALUE  s,
VALUE  v 
)
static

Definition at line 99 of file rpmhdr-rb.c.

References _debug, fprintf(), h, headerSprintf(), NULL, q, rpmhdr_ptr(), and rpmHeaderFormats.

Referenced by initMethods().

static VALUE rpmhdrLoadTag ( Header  h,
const char *  name 
)
static
VALUE rpmrb_NewHdr ( void _h)

Definition at line 263 of file rpmhdr-rb.c.

References rpmhdr_free(), and rpmhdrClass.

Referenced by rpmmi_each(), and rpmmi_next().

Variable Documentation

int _debug = 0
static
VALUE rpmhdrClass

Definition at line 28 of file rpmhdr-rb.c.

Referenced by Init_rpmhdr(), and rpmrb_NewHdr().