rpm  5.4.15
Macros | Functions | Variables
rpm-rb.c File Reference
#include "system.h"
#include "debug.h"
#include "rpm-rb.h"
#include "rpmts-rb.h"
#include "spec-rb.h"
#include "package-rb.h"
#include "rpmds-rb.h"
#include "rpmmc-rb.h"
#include <rpmrc.h>
#include <rpmcb.h>
#include <mire.h>
#include <stdio.h>
Include dependency graph for rpm-rb.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

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

Ruby Bindings initialization file

This file is the entry point for RPM's Ruby Bindings and contains the infamous Init_rpm() function that starts every Ruby binding. It also stores the rpmModule variable used for referencing the newly created Ruby module, e.g. to add methods.

Definition in file rpm-rb.c.

Macro Definition Documentation

#define _GNU_SOURCE

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

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