summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_predicate.c
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-16 22:28:41 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-16 22:28:41 +0000
commit5430bc3493d4012fb11f32675eaa9c437e4e83bd (patch)
treef77e5f1f7d63d3f4d55c289f268d0fe4d10bab13 /mixlib/mix_predicate.c
parente259b37f7316117d7c0f74b53373481c94c3cf02 (diff)
downloadmdk-5430bc3493d4012fb11f32675eaa9c437e4e83bd.tar.gz
mdk-5430bc3493d4012fb11f32675eaa9c437e4e83bd.tar.bz2
access to the predicate type added
Diffstat (limited to 'mixlib/mix_predicate.c')
-rw-r--r--mixlib/mix_predicate.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mixlib/mix_predicate.c b/mixlib/mix_predicate.c
index 38049dc..1406ef5 100644
--- a/mixlib/mix_predicate.c
+++ b/mixlib/mix_predicate.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mix_predicate.c :
* Implementation of the functions declared in mix_predicate.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "2001-07-16 01:15:51 jao"
+ * $Id: mix_predicate.c,v 1.3 2001/09/16 22:28:41 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001 Free Software Foundation, Inc.
*
@@ -134,6 +134,14 @@ mix_predicate_delete (mix_predicate_t *predicate)
g_free (predicate);
}
+/* return the predicate's type */
+mix_predicate_type_t
+mix_predicate_get_type (const mix_predicate_t *pred)
+{
+ g_return_val_if_fail (pred != NULL, MIX_PRED_INVALID);
+ return pred->type;
+}
+
/* test a predicate */
gboolean
mix_predicate_eval(mix_predicate_t *pred, const mix_vm_t *vm)