X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fpazpar2.h;h=158e2fb23072eb82563e19e8977782daf5a22d2b;hb=481ae7c85bdd4ac24c10efb2c1f68285d9aef189;hp=b84d11aa1ae06f50ada8c1a12354dabfa5487fbf;hpb=ddf9bdfd1e80474ce5a3772f77c4401908654b6e;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2.h b/src/pazpar2.h index b84d11a..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,30 +65,18 @@ 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 struct session_database { struct database *database; + int num_settings; struct setting **settings; normalize_record_t map; struct session_database *next; }; - - #define SESSION_WATCH_SHOW 0 #define SESSION_WATCH_RECORD 1 #define SESSION_WATCH_MAX 1 @@ -158,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);