Esempio n. 1
0
R_API RList *r_syscall_list(RSyscall *ctx) {
	RListIter *iter;
	RPairItem *o;
	RList *list = r_pair_list (ctx->syspair, NULL);

	RList *olist = r_list_new ();
	olist->free = (RListFree)r_syscall_item_free;
	r_list_foreach (list, iter, o) {
		RSyscallItem *si = r_syscall_item_new_from_string (o->k, o->v);
		if (!strchr (si->name, '.'))
			r_list_append (olist, si);
	}
Esempio n. 2
0
R_API RList *r_syscall_list(RSyscall *s) {
	if (!s || !s->db)
		return NULL;
	sdb_foreach (s->db, callback_list, s);
	// XXX: this method must be deprecated.. we have to use sdb to access this info
	return NULL;
#if 0
	RListIter *iter;
	RPairItem *o;
	RList *list = r_pair_list (s->db, NULL);

	RList *olist = r_list_new ();
	olist->free = (RListFree)r_syscall_item_free;
	r_list_foreach (list, iter, o) {
		RSyscallItem *si = r_syscall_item_new_from_string (o->k, o->v);
		if (!strchr (si->name, '.'))
			r_list_append (olist, si);
	}