rpm  5.4.10
Macros | Functions | Variables
rpmmc-rb.h File Reference

Ruby bindings to RPM's macro context facility. More...

#include "rpm-rb.h"
#include <rpmmacro.h>
#include <rpmio/argv.h>
Include dependency graph for rpmmc-rb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _MACRO_INTERNAL

Functions

void Init_rpmmc (void)
VALUE rpmmc_wrap (MacroContext mc)
 Wraps an already existing MacroContext struct in a Ruby class.

Variables

VALUE rpmmcClass
 RPM::Mc macro context Ruby class.

Detailed Description

Ruby bindings to RPM's macro context facility.

Definition in file rpmmc-rb.h.

Macro Definition Documentation

#define _MACRO_INTERNAL

Definition at line 15 of file rpmmc-rb.h.

Function Documentation

void Init_rpmmc ( void  )

Definition at line 348 of file rpmmc-rb.c.

References _debug, initMethods(), initProperties(), rpmmc_alloc(), rpmmcClass, and rpmModule.

Referenced by Init_rpm().

VALUE rpmmc_wrap ( MacroContext  mc)

Wraps an already existing MacroContext struct in a Ruby class.

Parameters
mcThe allocated MacroContext
Returns
The RPM::Mc Ruby class

Definition at line 325 of file rpmmc-rb.c.

References _debug, _rpmmc_free(), and rpmmcClass.

Referenced by rpmmc_alloc(), rpmmc_get_cli_mc(), rpmmc_get_global_mc(), and spec_get_macros().

Variable Documentation

VALUE rpmmcClass

RPM::Mc macro context Ruby class.

Definition at line 18 of file rpmmc-rb.c.

Referenced by Init_rpmmc(), and rpmmc_wrap().