SHARE
TWEET

Untitled

a guest May 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/src/libtracker-db/tracker-db-interface.c b/src/libtracker-db/tracker-db-interface.c
  2. index 170d899..19810d3 100644
  3. --- a/src/libtracker-db/tracker-db-interface.c
  4. +++ b/src/libtracker-db/tracker-db-interface.c
  5. @@ -23,9 +23,8 @@
  6.  
  7.  #include "tracker-db-interface.h"
  8.  
  9. -#define TRACKER_DB_RESULT_SET_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_DB_RESULT_SET, TrackerDBResultSetPrivate))
  10. -
  11. -typedef struct TrackerDBResultSetPrivate TrackerDBResultSetPrivate;
  12. +#define TRACKER_DB_RESULT_SET_GET_PRIVATE_O(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_DB_RESULT_SET, TrackerDBResultSetPrivate))
  13. +#define TRACKER_DB_RESULT_SET_GET_PRIVATE(o) (((TrackerDBResultSet*)o)->priv)
  14.  
  15.  struct TrackerDBResultSetPrivate {
  16.     GType *col_types;
  17. @@ -214,6 +213,7 @@ tracker_db_result_set_class_init (TrackerDBResultSetClass *class)
  18.  static void
  19.  tracker_db_result_set_init (TrackerDBResultSet *result_set)
  20.  {
  21. +   result_set->priv = TRACKER_DB_RESULT_SET_GET_PRIVATE_O (result_set);
  22.  }
  23.  
  24.  static TrackerDBResultSet *
  25. diff --git a/src/libtracker-db/tracker-db-interface.h b/src/libtracker-db/tracker-db-interface.h
  26. index 3ab515c..d92b4ef 100644
  27. --- a/src/libtracker-db/tracker-db-interface.h
  28. +++ b/src/libtracker-db/tracker-db-interface.h
  29. @@ -65,6 +65,7 @@ typedef struct TrackerDBResultSet      TrackerDBResultSet;
  30.  typedef struct TrackerDBResultSetClass TrackerDBResultSetClass;
  31.  typedef struct TrackerDBCursor         TrackerDBCursor;
  32.  typedef struct TrackerDBCursorIface    TrackerDBCursorIface;
  33. +typedef struct TrackerDBResultSetPrivate TrackerDBResultSetPrivate;
  34.  
  35.  struct TrackerDBInterfaceIface {
  36.     GTypeInterface iface;
  37. @@ -101,6 +102,7 @@ struct TrackerDBStatementIface {
  38.  
  39.  struct TrackerDBResultSet {
  40.     GObject parent_class;
  41. +   TrackerDBResultSetPrivate *priv;
  42.  };
  43.  
  44.  struct TrackerDBResultSetClass {
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top