/usr/include/tracker-2.0/libtracker-sparql/tracker-resource.h is in libtracker-sparql-2.0-dev 2.0.3-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | /*
* Copyright (C) 2016, Sam Thursfield <sam@afuera.me.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __LIBTRACKER_RESOURCE_H__
#define __LIBTRACKER_RESOURCE_H__
#include <glib-object.h>
#include "tracker-namespace-manager.h"
G_BEGIN_DECLS
#define TRACKER_TYPE_RESOURCE tracker_resource_get_type()
G_DECLARE_DERIVABLE_TYPE (TrackerResource, tracker_resource, TRACKER, RESOURCE, GObject)
struct _TrackerResourceClass
{
GObjectClass parent_class;
};
TrackerResource *tracker_resource_new (const char *identifier);
void tracker_resource_set_gvalue (TrackerResource *self, const char *property_uri, const GValue *value);
void tracker_resource_set_boolean (TrackerResource *self, const char *property_uri, gboolean value);
void tracker_resource_set_double (TrackerResource *self, const char *property_uri, double value);
void tracker_resource_set_int (TrackerResource *self, const char *property_uri, int value);
void tracker_resource_set_int64 (TrackerResource *self, const char *property_uri, gint64 value);
void tracker_resource_set_relation (TrackerResource *self, const char *property_uri, TrackerResource *resource);
void tracker_resource_set_take_relation (TrackerResource *self, const char *property_uri, TrackerResource *resource);
void tracker_resource_set_string (TrackerResource *self, const char *property_uri, const char *value);
void tracker_resource_set_uri (TrackerResource *self, const char *property_uri, const char *value);
void tracker_resource_add_gvalue (TrackerResource *self, const char *property_uri, const GValue *value);
void tracker_resource_add_boolean (TrackerResource *self, const char *property_uri, gboolean value);
void tracker_resource_add_double (TrackerResource *self, const char *property_uri, double value);
void tracker_resource_add_int (TrackerResource *self, const char *property_uri, int value);
void tracker_resource_add_int64 (TrackerResource *self, const char *property_uri, gint64 value);
void tracker_resource_add_relation (TrackerResource *self, const char *property_uri, TrackerResource *resource);
void tracker_resource_add_take_relation (TrackerResource *self, const char *property_uri, TrackerResource *resource);
void tracker_resource_add_string (TrackerResource *self, const char *property_uri, const char *value);
void tracker_resource_add_uri (TrackerResource *self, const char *property_uri, const char *value);
GList *tracker_resource_get_values (TrackerResource *self, const char *property_uri);
gboolean tracker_resource_get_first_boolean (TrackerResource *self, const char *property_uri);
double tracker_resource_get_first_double (TrackerResource *self, const char *property_uri);
int tracker_resource_get_first_int (TrackerResource *self, const char *property_uri);
gint64 tracker_resource_get_first_int64 (TrackerResource *self, const char *property_uri);
TrackerResource *tracker_resource_get_first_relation (TrackerResource *self, const char *property_uri);
const char *tracker_resource_get_first_string (TrackerResource *self, const char *property_uri);
const char *tracker_resource_get_first_uri (TrackerResource *self, const char *property_uri);
const char *tracker_resource_get_identifier (TrackerResource *self);
void tracker_resource_set_identifier (TrackerResource *self, const char *identifier);
gint tracker_resource_identifier_compare_func (TrackerResource *resource, const char *identifier);
char *tracker_resource_print_turtle(TrackerResource *self, TrackerNamespaceManager *namespaces);
char *tracker_resource_print_sparql_update (TrackerResource *self, TrackerNamespaceManager *namespaces, const char *graph_id);
G_END_DECLS
#endif /* __LIBTRACKER_RESOURCE_H__ */
|