dee-model.h | dee-model.h | |||
---|---|---|---|---|
skipping to change at line 219 | skipping to change at line 219 | |||
gpointer (*get_tag) (DeeModel *self, | gpointer (*get_tag) (DeeModel *self, | |||
DeeModelIter *iter, | DeeModelIter *iter, | |||
DeeModelTag *tag); | DeeModelTag *tag); | |||
void (*set_tag) (DeeModel *self, | void (*set_tag) (DeeModel *self, | |||
DeeModelIter *iter, | DeeModelIter *iter, | |||
DeeModelTag *tag, | DeeModelTag *tag, | |||
gpointer value); | gpointer value); | |||
GVariant** (*get_row) (DeeModel *self, | ||||
DeeModelIter *iter, | ||||
GVariant **out_row_members); | ||||
/*< private >*/ | /*< private >*/ | |||
void (*_dee_model_1) (void); | void (*_dee_model_1) (void); | |||
void (*_dee_model_2) (void); | void (*_dee_model_2) (void); | |||
void (*_dee_model_3) (void); | void (*_dee_model_3) (void); | |||
void (*_dee_model_4) (void); | void (*_dee_model_4) (void); | |||
void (*_dee_model_5) (void); | void (*_dee_model_5) (void); | |||
void (*_dee_model_6) (void); | void (*_dee_model_6) (void); | |||
void (*_dee_model_7) (void); | void (*_dee_model_7) (void); | |||
void (*_dee_model_8) (void); | ||||
}; | }; | |||
GType dee_model_iter_get_type (void); | GType dee_model_iter_get_type (void); | |||
/** | /** | |||
* dee_model_get_type: | * dee_model_get_type: | |||
* | * | |||
* The GType of #DeeModel | * The GType of #DeeModel | |||
* | * | |||
* Return value: the #GType of #DeeModel | * Return value: the #GType of #DeeModel | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added | |||
dee-peer.h | dee-peer.h | |||
---|---|---|---|---|
skipping to change at line 78 | skipping to change at line 78 | |||
}; | }; | |||
struct _DeePeerClass | struct _DeePeerClass | |||
{ | { | |||
/*< private >*/ | /*< private >*/ | |||
GObjectClass parent_class; | GObjectClass parent_class; | |||
/*< public >*/ | /*< public >*/ | |||
/*< signals >*/ | /*< signals >*/ | |||
void (*peer_found) (DeePeer *peer, const gchar *name); | void (*peer_found) (DeePeer *self, const gchar *name); | |||
void (*peer_lost) (DeePeer *peer, const gchar *name); | void (*peer_lost) (DeePeer *self, const gchar *name); | |||
void (*connection_acquired) (DeePeer *peer, GDBusConnection *connection); | void (*connection_acquired) (DeePeer *self, GDBusConnection *connection); | |||
void (*connection_closed) (DeePeer *peer, GDBusConnection *connection); | void (*connection_closed) (DeePeer *self, GDBusConnection *connection); | |||
/*< vtable >*/ | /*< vtable >*/ | |||
const gchar* (*get_swarm_leader) (DeePeer *peer); | const gchar* (*get_swarm_leader) (DeePeer *self); | |||
gboolean (*is_swarm_leader) (DeePeer *peer); | gboolean (*is_swarm_leader) (DeePeer *self); | |||
GSList* (*get_connections) (DeePeer *peer); | GSList* (*get_connections) (DeePeer *self); | |||
gchar** (*list_peers) (DeePeer *peer); | gchar** (*list_peers) (DeePeer *self); | |||
/*< private >*/ | /*< private >*/ | |||
void (*_dee_peer_1) (void); | void (*_dee_peer_1) (void); | |||
void (*_dee_peer_2) (void); | void (*_dee_peer_2) (void); | |||
void (*_dee_peer_3) (void); | void (*_dee_peer_3) (void); | |||
}; | }; | |||
/** | /** | |||
* dee_peer_get_type: | * dee_peer_get_type: | |||
* | * | |||
skipping to change at line 116 | skipping to change at line 116 | |||
gboolean dee_peer_is_swarm_leader (DeePeer *self); | gboolean dee_peer_is_swarm_leader (DeePeer *self); | |||
const gchar* dee_peer_get_swarm_leader (DeePeer *self); | const gchar* dee_peer_get_swarm_leader (DeePeer *self); | |||
const gchar* dee_peer_get_swarm_name (DeePeer *self); | const gchar* dee_peer_get_swarm_name (DeePeer *self); | |||
GSList* dee_peer_get_connections (DeePeer *self); | GSList* dee_peer_get_connections (DeePeer *self); | |||
gchar** dee_peer_list_peers (DeePeer *self); | gchar** dee_peer_list_peers (DeePeer *self); | |||
gboolean dee_peer_is_swarm_owner (DeePeer *self); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* _HAVE_DEE_PEER_H */ | #endif /* _HAVE_DEE_PEER_H */ | |||
End of changes. 3 change blocks. | ||||
8 lines changed or deleted | 10 lines changed or added | |||
dee-shared-model.h | dee-shared-model.h | |||
---|---|---|---|---|
skipping to change at line 95 | skipping to change at line 95 | |||
void (*_dee_shared_model_2) (void); | void (*_dee_shared_model_2) (void); | |||
void (*_dee_shared_model_3) (void); | void (*_dee_shared_model_3) (void); | |||
void (*_dee_shared_model_4) (void); | void (*_dee_shared_model_4) (void); | |||
}; | }; | |||
typedef enum | typedef enum | |||
{ | { | |||
DEE_SHARED_MODEL_ERROR_LEADER_INVALIDATED | DEE_SHARED_MODEL_ERROR_LEADER_INVALIDATED | |||
} DeeSharedModelError; | } DeeSharedModelError; | |||
#define DEE_TYPE_SHARED_MODEL_ACCESS_MODE \ | ||||
(dee_shared_model_access_mode_get_type ()) | ||||
/** | ||||
* DeeSharedModelAccessMode: | ||||
* | ||||
* Enumeration defining behavior of the model with regards to writes from | ||||
* other peers in the swarm. | ||||
*/ | ||||
typedef enum | ||||
{ | ||||
DEE_SHARED_MODEL_ACCESS_MODE_WORLD_WRITABLE, | ||||
DEE_SHARED_MODEL_ACCESS_MODE_LEADER_WRITABLE | ||||
} DeeSharedModelAccessMode; | ||||
/** | ||||
* dee_shared_model_access_mode_get_type: | ||||
* | ||||
* The GType of #DeeSharedModelAccessMode | ||||
* | ||||
* Return value: the #GType of #DeeSharedModelAccessMode | ||||
**/ | ||||
GType dee_shared_model_access_mode_get_type (void); | ||||
/** | /** | |||
* dee_shared_model_get_type: | * dee_shared_model_get_type: | |||
* | * | |||
* The GType of #DeeSharedModel | * The GType of #DeeSharedModel | |||
* | * | |||
* Return value: the #GType of #DeeSharedModel | * Return value: the #GType of #DeeSharedModel | |||
**/ | **/ | |||
GType dee_shared_model_get_type (void); | GType dee_shared_model_get_type (void); | |||
DeeModel* dee_shared_model_new (const gchar *name); | DeeModel* dee_shared_model_new (const gchar *name); | |||
DeeModel* dee_shared_model_new_for_peer (DeePeer *peer); | DeeModel* dee_shared_model_new_for_peer (DeePeer *peer); | |||
DeeModel* dee_shared_model_new_with_back_end (const gchar *name | DeeModel* dee_shared_model_new_with_back_end | |||
, | (const gchar *name, | |||
DeeModel *back_en | DeeModel *back_end) | |||
d); | ; | |||
const gchar* dee_shared_model_get_swarm_name (DeeSharedModel *sel f); | const gchar* dee_shared_model_get_swarm_name (DeeSharedModel *sel f); | |||
DeePeer* dee_shared_model_get_peer (DeeSharedModel *sel f); | DeePeer* dee_shared_model_get_peer (DeeSharedModel *sel f); | |||
gboolean dee_shared_model_is_leader (DeeSharedModel *sel f); | gboolean dee_shared_model_is_leader (DeeSharedModel *sel f); | |||
gboolean dee_shared_model_is_synchronized (DeeSharedModel *sel f); | gboolean dee_shared_model_is_synchronized (DeeSharedModel *sel f); | |||
guint dee_shared_model_flush_revision_queue (DeeSharedModel | guint dee_shared_model_flush_revision_queue | |||
*self); | (DeeSharedModel *sel | |||
f); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* _HAVE_DEE_SHARED_MODEL_H */ | #endif /* _HAVE_DEE_SHARED_MODEL_H */ | |||
End of changes. 3 change blocks. | ||||
6 lines changed or deleted | 31 lines changed or added | |||