/usr/include/couchdb-glib-1.0/couchdb-session.h is in libcouchdb-glib-dev 0.7.4-0ubuntu3.
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 80 81 82 83 84 85 86 87 88 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2009-2010 Canonical Services Ltd (www.canonical.com)
* 2009 Mikkel Kamstrup Erlandsen
*
* Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
* Mikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program 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
* 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 __COUCHDB_SESSION_H__
#define __COUCHDB_SESSION_H__
#include <glib.h>
#include <glib-object.h>
#include "couchdb-types.h"
#include "couchdb-credentials.h"
#include "couchdb-database-info.h"
G_BEGIN_DECLS
#define COUCHDB_TYPE_SESSION (couchdb_session_get_type ())
#define COUCHDB_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COUCHDB_TYPE_SESSION, CouchdbSession))
#define COUCHDB_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COUCHDB_TYPE_SESSION))
#define COUCHDB_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COUCHDB_TYPE_SESSION, CouchdbSessionClass))
#define COUCHDB_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COUCHDB_TYPE_SESSION))
#define COUCHDB_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COUCHDB_TYPE_SESSION, CouchdbSessionClass))
typedef struct _CouchdbSessionPrivate CouchdbSessionPrivate;
typedef struct _CouchdbDatabase CouchdbDatabase;
typedef struct {
GObject parent;
CouchdbSessionPrivate *priv;
} CouchdbSession;
typedef struct {
GObjectClass parent_class;
/* Signals */
void (* authentication_failed) (CouchdbSession *session);
void (* database_created) (CouchdbSession *session, const char *dbname);
void (* database_deleted) (CouchdbSession *session, const char *dbname);
} CouchdbSessionClass;
GType couchdb_session_get_type (void);
CouchdbSession *couchdb_session_new (const char *uri);
const char *couchdb_session_get_uri (CouchdbSession *session);
GSList *couchdb_session_list_databases (CouchdbSession *session, GError **error);
void couchdb_session_free_database_list (GSList *dblist);
CouchdbDatabaseInfo *couchdb_session_get_database_info (CouchdbSession *session, const char *dbname, GError **error);
CouchdbDatabase *couchdb_session_get_database (CouchdbSession *session, const char *dbname, GError **error);
gboolean couchdb_session_create_database (CouchdbSession *session, const char *dbname, GError **error);
gboolean couchdb_session_delete_database (CouchdbSession *session, const char *dbname, GError **error);
gboolean couchdb_session_compact_database (CouchdbSession *session, const char *dbname, GError **error);
void couchdb_session_enable_authentication (CouchdbSession *session, CouchdbCredentials *credentials);
void couchdb_session_disable_authentication (CouchdbSession *session);
gboolean couchdb_session_is_authentication_enabled (CouchdbSession *session);
gboolean couchdb_session_replicate (CouchdbSession *session,
const gchar *source,
const gchar *target,
gboolean continous,
GError **error);
G_END_DECLS
#endif /* __COUCHDB_H__ */
|