From 92ab7c33fb4d72eba070636f620f595dc4650ee9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 15 Feb 2008 20:57:30 -0600 Subject: Move pmgraph_t struct and functions to their own header file This will allow us to utilize this helpful type and functions in places besides dependency calculations. In addition, remove the public declaration of pmgraph_t in alpm.h- there is zero need to expose this internal type. Signed-off-by: Dan McGee --- lib/libalpm/deps.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/libalpm/deps.h') diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h index 439a92a2..0c3975e6 100644 --- a/lib/libalpm/deps.h +++ b/lib/libalpm/deps.h @@ -40,16 +40,6 @@ struct __pmdepmissing_t { char *causingpkg; /* this is used in case of remove dependency error only */ }; -/* Graphs */ -struct __pmgraph_t { - int state; /* 0: untouched, -1: entered, other: leaving time */ - void *data; - struct __pmgraph_t *parent; /* where did we come from? */ - alpm_list_t *children; - alpm_list_t *childptr; /* points to a child in children list */ -}; - - void _alpm_dep_free(pmdepend_t *dep); pmdepend_t *_alpm_dep_dup(const pmdepend_t *dep); pmdepmissing_t *_alpm_depmiss_new(const char *target, pmdepend_t *dep, -- cgit v1.2.3-24-g4f1b