summaryrefslogtreecommitdiff
path: root/include/disfluid-gobject.h
blob: b7e5daa663786b7fac6edbd6c049c76469bd40d8 (plain)
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
89
90
91
#ifndef H_DISFLUID_GOBJECT_INCLUDED
# define H_DISFLUID_GOBJECT_INCLUDED

# include <stdlib.h>
# include <stdio.h>
# include <time.h>

# include <glib.h>
# include <glib-object.h>

# if defined _WIN32 && !defined __CYGWIN__
#  define DISFLUID_G_DLL_MADNESS 1
# else
#  define DISFLUID_G_DLL_MADNESS 0
# endif

# if BUILDING_LIBDISFLUID_GOBJECT && HAVE_VISIBILITY
#  define DISFLUID_G_DLL_EXPORTED __attribute__((__visibility__("default")))
# elif BUILDING_LIBDISFLUID_GOBJECT && DISFLUID_G_DLL_MADNESS
#  define DISFLUID_G_DLL_EXPORTED __declspec(dllexport)
# elif DISFLUID_G_DLL_MADNESS
#  define DISFLUID_G_DLL_EXPORTED __declspec(dllimport)
# else
#  define DISFLUID_G_DLL_EXPORTED
# endif

# define DISFLUID_G_API \
  DISFLUID_G_DLL_EXPORTED

# ifdef __cplusplus
extern "C"
{
# endif				/* __cplusplus */

  typedef struct disfluid_cache_entry DisfluidCacheEntry;

# define DISFLUID_TYPE_CACHE_ENTRY (disfluid_cache_entry_get_type ())

  /**
   * disfluid_cache_entry_get_type:
   *
   * Query the type index used to register a cache entry.
   * Returns: the type.
   */
  DISFLUID_G_API extern GType disfluid_cache_entry_get_type (void);

  /**
   * disfluid_cache_entry_set_request_gdate:
   * @entry: (type DisfluidCacheEntry): the entry to modify.
   * @request_date: the request date.
   */
  DISFLUID_G_API extern void
    disfluid_cache_entry_set_request_gdate (struct disfluid_cache_entry
					    *entry, GDateTime * request_date);

  /**
   * disfluid_cache_entry_set_response_gdate:
   * @entry: (type DisfluidCacheEntry): the entry to modify.
   * @response_date: the response date.
   */
  DISFLUID_G_API extern void
    disfluid_cache_entry_set_response_gdate (struct disfluid_cache_entry
					     *entry,
					     GDateTime * response_date);

  /**
   * disfluid_cache_entry_get_request_gdate:
   * @entry: (type DisfluidCacheEntry): the entry to query.
   * @date: (out) (transfer full): the request date.
   */
  DISFLUID_G_API extern void
    disfluid_cache_entry_get_request_gdate (const struct disfluid_cache_entry
					    *entry, GDateTime ** date);

  /**
   * disfluid_cache_entry_get_response_gdate:
   * @entry: (type DisfluidCacheEntry): the entry to query.
   * @date: (out) (transfer full): the response date.
   */
  DISFLUID_G_API extern void
    disfluid_cache_entry_get_response_gdate (const struct disfluid_cache_entry
					     *entry, GDateTime ** date);


# ifdef __cplusplus
}
# endif				/* __cplusplus */

# include <disfluid/cache_entry.h>

#endif				/* not H_DISFLUID_GOBJECT_INCLUDED */