git » fp-git.git » commit a1197a8

started coding function

author ecalot
2006-06-13 04:11:23 UTC
committer ecalot
2006-06-13 04:11:23 UTC
parent df6c80c8cfe86ac1543581518d8926e66840549d

started coding function

PR/src/lib/layers/pallist.c +15 -2

diff --git a/PR/src/lib/layers/pallist.c b/PR/src/lib/layers/pallist.c
index 9d460b4..dbeb8d9 100644
--- a/PR/src/lib/layers/pallist.c
+++ b/PR/src/lib/layers/pallist.c
@@ -85,9 +85,22 @@ tPL  pl_create() {
 
 int  pl_hasPriority(tPL* pl, tResourceId resid) {
 	if (!pl->priority_field.object) return 0; /* false */
-	return resourceListCompareId(resid,pl->priority_field.idres);	
+	return resourceListCompareId(resid,pl->priority_field.idres)==0;
 }
 
+int  pl_tryAdd(tPL* pl, tResourceId resid, tPriority p) {
+/*	if (p==highPriority) {
+		if (pl->priority_field.object) {
+			if (resourceListCompareId(resid,pl->priority_field.idres)!=0) {
+				tObject* o=pl->priority_field.object;
+				pl->priority_field.object=NULL;
+				pl_add(pl,o,pl->priority_field.idres,lowPriority);
+			}
+		}
+
+	}
+*/
 
-
+	return 0;
+}