~ubuntu-branches/debian/sid/bijiben/sid

« back to all changes in this revision

Viewing changes to src/libbiji/serializer/biji-lazy-serializer.h

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2013-03-26 21:19:36 UTC
  • Revision ID: package-import@ubuntu.com-20130326211936-tu8mpy82juohw8m2
Tags: upstream-3.8.0
ImportĀ upstreamĀ versionĀ 3.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Bijiben
 
3
 * Copyright (C) Pierre-Yves Luyten 2012 <py@luyten.fr>
 
4
 *
 
5
 * Bijiben is free software: you can redistribute it and/or modify it
 
6
 * under the terms of the GNU General Public License as published by the
 
7
 * Free Software Foundation, either version 3 of the License, or
 
8
 * (at your option) any later version.
 
9
 * 
 
10
 * WebkitWebView is distributed in the hope that it will be useful, but
 
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
13
 * See the GNU General Public License for more details.
 
14
 * 
 
15
 * You should have received a copy of the GNU General Public License along
 
16
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
/* This serializer is used for developement at first.
 
20
 * It combines XML format for metadata
 
21
 * and HTML format for note body.
 
22
 *
 
23
 * This format is NOT compatible with anything as of today.*/
 
24
 
 
25
#ifndef _BIJI_LAZY_SERIALIZER_H_
 
26
#define _BIJI_LAZY_SERIALIZER_H_
 
27
 
 
28
#include "../biji-note-obj.h"
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define BIJI_TYPE_LAZY_SERIALIZER             (biji_lazy_serializer_get_type ())
 
33
#define BIJI_LAZY_SERIALIZER(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), BIJI_TYPE_LAZY_SERIALIZER, BijiLazySerializer))
 
34
#define BIJI_LAZY_SERIALIZER_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), BIJI_TYPE_LAZY_SERIALIZER, BijiLazySerializerClass))
 
35
#define BIJI_IS_LAZY_SERIALIZER(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BIJI_TYPE_LAZY_SERIALIZER))
 
36
#define BIJI_IS_LAZY_SERIALIZER_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), BIJI_TYPE_LAZY_SERIALIZER))
 
37
#define BIJI_LAZY_SERIALIZER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BIJI_TYPE_LAZY_SERIALIZER, BijiLazySerializerClass))
 
38
 
 
39
typedef struct _BijiLazySerializerClass BijiLazySerializerClass;
 
40
typedef struct _BijiLazySerializer BijiLazySerializer;
 
41
 
 
42
typedef struct _BijiLazySerializerPrivate BijiLazySerializerPrivate;
 
43
 
 
44
struct _BijiLazySerializerClass
 
45
{
 
46
  GObjectClass parent_class;
 
47
};
 
48
 
 
49
struct _BijiLazySerializer
 
50
{
 
51
  GObject parent_instance;
 
52
  BijiLazySerializerPrivate *priv;
 
53
};
 
54
 
 
55
GType biji_lazy_serializer_get_type (void) G_GNUC_CONST;
 
56
 
 
57
gboolean biji_lazy_serialize (BijiNoteObj *note);
 
58
 
 
59
G_END_DECLS
 
60
 
 
61
#endif /* _BIJI_LAZY_SERIALIZER_H_ */
 
62