tnt-query

tnt-query —

Synopsis




#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);

Description

Details

TNT_QUERY()

#define TNT_QUERY(object) ((TntQuery *) object)

object :

struct TntQuery

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);
};


tnt_query_init ()

void        tnt_query_init                  (TntQuery *query);

query :

tnt_query_finalize ()

void        tnt_query_finalize              (FluxObject *query);

query :

tnt_query_set_id ()

void        tnt_query_set_id                (TntQuery *query,
                                             guint16 id);

query :
id :

tnt_query_get_id ()

guint16     tnt_query_get_id                (TntQuery *query);

query :
Returns :

tnt_query_compare ()

gint        tnt_query_compare               (TntQuery *query_1,
                                             TntQuery *query_2);

query_1 :
query_2 :
Returns :

tnt_query_get_string ()

const gchar* tnt_query_get_string           (TntQuery *query);

query :
Returns :

tnt_query_set_string ()

void        tnt_query_set_string            (TntQuery *query,
                                             const gchar *string);

query :
string :

tnt_query_get_n_matches ()

gint        tnt_query_get_n_matches         (TntQuery *query);

query :
Returns :

tnt_query_try_match ()

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 :