[phodav: 16/18] wip: move Path to its own header
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav: 16/18] wip: move Path to its own header
- Date: Thu, 10 Apr 2014 17:52:25 +0000 (UTC)
commit cb7e6631ad9ecdb41e431f65db720e5d2d712f27
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Thu Apr 10 19:40:17 2014 +0200
wip: move Path to its own header
libphodav/phodav-method-propfind.c | 2 ++
libphodav/phodav-path.h | 7 +++++++
libphodav/phodav-priv.h | 8 --------
3 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/libphodav/phodav-method-propfind.c b/libphodav/phodav-method-propfind.c
index 3041a21..f3040b5 100644
--- a/libphodav/phodav-method-propfind.c
+++ b/libphodav/phodav-method-propfind.c
@@ -17,9 +17,11 @@
*/
#include "phodav-priv.h"
+
#include "phodav-utils.h"
#include "phodav-multistatus.h"
#include "phodav-lock.h"
+#include "phodav-path.h"
typedef struct _PropFind
{
diff --git a/libphodav/phodav-path.h b/libphodav/phodav-path.h
index 78b1528..b7d50bb 100644
--- a/libphodav/phodav-path.h
+++ b/libphodav/phodav-path.h
@@ -22,6 +22,13 @@
G_BEGIN_DECLS
+struct _Path
+{
+ gchar *path;
+ GList *locks;
+ guint32 refs;
+};
+
Path * path_ref (Path *path);
void path_unref (Path *path);
void path_remove_lock (Path *path, DAVLock *lock);
diff --git a/libphodav/phodav-priv.h b/libphodav/phodav-priv.h
index 9a81110..eb369a0 100644
--- a/libphodav/phodav-priv.h
+++ b/libphodav/phodav-priv.h
@@ -70,18 +70,10 @@ struct _DAVLock
guint64 timeout;
};
-struct _Path
-{
- gchar *path;
- GList *locks;
- guint32 refs;
-};
-
typedef gboolean (* PathCb) (const gchar *key,
Path *path,
gpointer data);
-
GFile * handler_get_file (PathHandler *handler);
GCancellable * handler_get_cancellable (PathHandler *handler);
PhodavServer * handler_get_server (PathHandler *handler);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]