![]() | ![]() | ![]() | Tentacles Reference Manual | ![]() |
---|
tnt-query —
#define TNT_QUERY (object) struct TntQuery; void tnt_query_init (TntQuery *query); void tnt_query_finalize (FluxObject *query); void tnt_query_set_id (TntQuery *query, guint16 id); guint16 tnt_query_get_id (TntQuery *query); gint tnt_query_compare (TntQuery *query_1, TntQuery *query_2); const gchar* tnt_query_get_string (TntQuery *query); void tnt_query_set_string (TntQuery *query, const gchar *string); gint tnt_query_get_n_matches (TntQuery *query); gboolean tnt_query_try_match (TntQuery *query, const TntFileID *file_id, TntFileMeta *file_meta, TntNodeID node_id, gint remote_blocks);
struct TntQuery { FluxObject object; guint16 id; guint16 match_local : 1; guint16 match_partial : 1; gchar *string; TntMatchField match_field; TntMediaType media; gint category; void (*filter_func) (TntQuery *query); gint (*get_n_matches_func) (TntQuery *query); gboolean (*try_match_func) (TntQuery *query, const TntFileID *file_id, TntFileMeta *file_meta, TntNodeID node_id, gint remote_blocks); };
gint tnt_query_compare (TntQuery *query_1, TntQuery *query_2);
query_1 : | |
query_2 : | |
Returns : |
void tnt_query_set_string (TntQuery *query, const gchar *string);
query : | |
string : |
gboolean tnt_query_try_match (TntQuery *query, const TntFileID *file_id, TntFileMeta *file_meta, TntNodeID node_id, gint remote_blocks);
query : | |
file_id : | |
file_meta : | |
node_id : | |
remote_blocks : | |
Returns : |
<< Queries and Matches | tnt-remote-query >> |