rpm  5.4.10
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 void * rpmhdr_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

§ _RPMDS_INTERNAL

#define _RPMDS_INTERNAL

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

Function Documentation

§ Init_rpmhdr()

void Init_rpmhdr ( void  )

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

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

§ initMethods()

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().

§ initProperties()

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().

§ rpmhdr__get()

static VALUE rpmhdr__get ( VALUE  s,
VALUE  v 
)
static

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

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

Referenced by initProperties().

§ rpmhdr_debug_get()

static VALUE rpmhdr_debug_get ( VALUE  s)
static

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

References _debug.

Referenced by initProperties().

§ rpmhdr_debug_set()

static VALUE rpmhdr_debug_set ( VALUE  s,
VALUE  v 
)
static

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

References _debug.

Referenced by initProperties().

§ rpmhdr_ds()

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

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

References _debug, rpmdsNew(), rpmhdr_ptr(), rpmrb_NewDs(), and RPMTAG_PROVIDENAME.

Referenced by initMethods().

§ rpmhdr_fi()

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

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

References _debug, rpmfiNew(), rpmhdr_ptr(), rpmrb_NewFi(), and RPMTAG_BASENAMES.

Referenced by initMethods().

§ rpmhdr_free()

static void rpmhdr_free ( Header  h)
static

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

References _debug, and headerFree().

Referenced by rpmhdr_new(), and rpmrb_NewHdr().

§ rpmhdr_getorigin()

static VALUE rpmhdr_getorigin ( VALUE  s)
static

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

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

Referenced by initMethods().

§ rpmhdr_new()

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

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

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

Referenced by Init_rpmhdr().

§ rpmhdr_ptr()

static void* rpmhdr_ptr ( VALUE  s)
static

§ rpmhdr_setorigin()

static VALUE rpmhdr_setorigin ( VALUE  s,
VALUE  v 
)
static

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

References _debug, headerGetOrigin(), headerSetOrigin(), and rpmhdr_ptr().

Referenced by initMethods().

§ rpmhdr_sprintf()

static VALUE rpmhdr_sprintf ( VALUE  s,
VALUE  v 
)
static

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

References _debug, headerSprintf(), rpmhdr_ptr(), and rpmHeaderFormats.

Referenced by initMethods().

§ rpmhdrLoadTag()

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

§ rpmrb_NewHdr()

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

§ _debug

int _debug = 0
static

§ rpmhdrClass

VALUE rpmhdrClass

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

Referenced by Init_rpmhdr(), and rpmrb_NewHdr().