rpm  5.4.15
Functions | Variables
rpm-rb.h File Reference

RPM Ruby bindings "RPM" module. More...

#include "system.h"
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
Include dependency graph for rpm-rb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Init_rpm (void)
 Defines the "RPM" Ruby module and makes it known to the Interpreter. More...
 
void rpm_rb_raise (rpmRC error, char *message)
 Raises a Ruby exception (RPM::Error). More...
 

Variables

VALUE rpmModule
 The "RPM" Ruby module. More...
 

Detailed Description

RPM Ruby bindings "RPM" module.

Definition in file rpm-rb.h.

Function Documentation

void Init_rpm ( void  )

Defines the "RPM" Ruby module and makes it known to the Interpreter.

Definition at line 38 of file rpm-rb.c.

References Init_Package(), Init_rpmds(), Init_rpmmc(), Init_rpmts(), Init_spec(), rpm_rb_raise(), rpmModule, and rpmReadConfigFiles().

void rpm_rb_raise ( rpmRC  error,
char *  message 
)

Raises a Ruby exception (RPM::Error).

Parameters
errorThe return code leading to the exception
messageA message to include in the exception.

Definition at line 53 of file rpm-rb.c.

References i.

Referenced by Init_rpm(), rpmmc_add(), rpmmc_del(), rpmmc_load_macro_file(), rpmts_parse_spec(), and spec_build().

Variable Documentation

VALUE rpmModule

The "RPM" Ruby module.

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

Referenced by Init_Package(), Init_rpm(), Init_rpmds(), Init_rpmmc(), Init_rpmts(), and Init_spec().