X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpazpar2.h;h=158e2fb23072eb82563e19e8977782daf5a22d2b;hb=837ce54389667b8c40b2961dd76403e932b6bd92;hp=bb46b526ffeaa9e7f49dc69f4c1709aa3a7dcc90;hpb=c9b8aa39dec714c08863e7fbb6c6a7821421f947;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2.h b/src/pazpar2.h index bb46b52..158e2fb 100644 --- a/src/pazpar2.h +++ b/src/pazpar2.h @@ -52,11 +52,7 @@ enum pazpar2_error_code { PAZPAR2_LAST_ERROR }; -enum pazpar2_database_criterion_type { - PAZPAR2_STRING_MATCH, - PAZPAR2_SUBSTRING_MATCH -}; - +struct host; // Represents a (virtual) database on a host struct database { struct host *host; @@ -69,17 +65,6 @@ struct database { struct database *next; }; -struct database_criterion_value { - char *value; - struct database_criterion_value *next; -}; - -struct database_criterion { - char *name; - enum pazpar2_database_criterion_type type; - struct database_criterion_value *values; - struct database_criterion *next; -}; // Represents a database as viewed from one session, possibly with settings overriden // for that session @@ -92,8 +77,6 @@ struct session_database struct session_database *next; }; - - #define SESSION_WATCH_SHOW 0 #define SESSION_WATCH_RECORD 1 #define SESSION_WATCH_MAX 1 @@ -159,7 +142,6 @@ struct hitsbytarget { }; struct hitsbytarget *hitsbytarget(struct session *s, int *count, NMEM nmem); -int select_targets(struct session *se, struct database_criterion *crit); struct session *new_session(NMEM nmem, struct conf_service *service); void destroy_session(struct session *s); void session_init_databases(struct session *s);