16 #define _RPMDS_INTERNAL
37 Data_Get_Struct(s,
void, ptr);
53 fprintf(stderr,
"==> %s(0x%lx)\n", __FUNCTION__, s);
61 fprintf(stderr,
"==> %s(0x%lx, 0x%lx)\n", __FUNCTION__, s, v);
62 return INT2FIX(
_debug = FIX2INT(v));
70 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
80 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
89 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
99 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
113 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
123 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
133 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
141 int color = FIX2INT(v);
143 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
153 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
161 int nopromote = FIX2INT(v);
163 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
173 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
174 return rb_str_new2(
rpmdsN(ds));
182 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
191 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
200 fprintf(stderr,
"==> %s(0x%lx) ptr %p\n", __FUNCTION__, s, ds);
230 fprintf(stderr,
"==> %s(%p)\n", __FUNCTION__, ds);
242 rb_scan_args(argc, argv,
"02", &v_hdr, &v_tag);
245 tag = FIX2INT(v_tag);
254 fprintf(stderr,
"==> %s(%p[%d], 0x%lx) mi %p\n", __FUNCTION__, argv, argc, s, ds);
255 return Data_Wrap_Struct(s, 0,
rpmds_free, ds);
265 fprintf(stderr,
"==> %s() rpmdsClass 0x%lx\n", __FUNCTION__,
rpmdsClass);
267 rb_include_module(
rpmdsClass, rb_mEnumerable);
evrFlags rpmdsFlags(const rpmds ds)
Return current dependency flags.
static void initProperties(VALUE klass)
const char * rpmdsType(const rpmds ds)
Return current dependency type name.
int rpmdsNoPromote(const rpmds ds)
Return current "Don't promote Epoch:" flag.
static VALUE rpmds_debug_set(VALUE s, VALUE v)
VALUE rpmrb_NewDs(void *_ds)
static VALUE rpmds_N_get(VALUE s)
static VALUE rpmds_Type_get(VALUE s)
static VALUE rpmds_NoPromote_set(VALUE s, VALUE v)
static VALUE rpmds_Flags_get(VALUE s)
rpmuint32_t rpmdsSetColor(const rpmds ds, rpmuint32_t color)
Set current dependency color.
const char * rpmdsDNEVR(const rpmds ds)
Return current formatted dependency string.
static VALUE rpmds_Ix_get(VALUE s)
struct rpmds_s * rpmds
Dependency tag sets from a header, so that a header can be discarded early.
time_t rpmdsSetBT(const rpmds ds, time_t BT)
Set dependency build time.
rpmds rpmdsFree(rpmds ds)
Destroy a dependency set.
static void * rpmds_ptr(VALUE s)
static VALUE rpmds_BT_get(VALUE s)
static VALUE rpmds_Color_get(VALUE s)
const char const bson_bool_t v
time_t rpmdsBT(const rpmds ds)
Return dependency build time.
static VALUE rpmds_Count_get(VALUE s)
int rpmdsRpmlib(rpmds *dsp, void *tblp)
Load rpmlib provides into a dependency set.
static VALUE rpmds_Color_set(VALUE s, VALUE v)
static void rpmds_free(rpmds ds)
static void initMethods(VALUE klass)
const char * rpmdsEVR(const rpmds ds)
Return current dependency epoch-version-release.
int rpmdsNext(rpmds ds)
Return next dependency set iterator index.
Structure(s) used for dependency tag sets.
int rpmdsCount(const rpmds ds)
Return dependency set count.
const char * rpmdsN(const rpmds ds)
Return current dependency name.
const char const bson int mongo_write_concern int flags
RPM Ruby bindings "RPM" module.
static VALUE rpmds_NoPromote_get(VALUE s)
static VALUE rpmds_debug_get(VALUE s)
int rpmdsIx(const rpmds ds)
Return dependency set index.
rpmuint32_t rpmdsColor(const rpmds ds)
Return current dependency color.
VALUE rpmModule
The "RPM" Ruby module.
static VALUE rpmds_new(int argc, VALUE *argv, VALUE s)
static VALUE rpmds_Ix_set(VALUE s, VALUE v)
rpmds rpmdsNew(Header h, rpmTag tagN, int flags)
Create and load a dependency set.
int rpmdsSetNoPromote(rpmds ds, int nopromote)
Set "Don't promote Epoch:" flag.
int rpmdsSetIx(rpmds ds, int ix)
Set dependency set index.
static VALUE rpmds_DNEVR_get(VALUE s)
static VALUE rpmds_BT_set(VALUE s, VALUE v)
static VALUE rpmds_EVR_get(VALUE s)