diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk-common.h')
-rw-r--r-- | src/fs/gnunet-fs-gtk-common.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/fs/gnunet-fs-gtk-common.h b/src/fs/gnunet-fs-gtk-common.h index e316768b..a24d0126 100644 --- a/src/fs/gnunet-fs-gtk-common.h +++ b/src/fs/gnunet-fs-gtk-common.h | |||
@@ -19,32 +19,45 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file src/fs/common.h | 22 | * @file src/fs/gnunet-fs-gtk-common.h |
23 | * @brief Common includes for all gnunet-gtk source files | 23 | * @brief Common includes for all gnunet-gtk source files |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | #ifndef COMMON_H | 26 | #ifndef GNUNET_FS_GTK_COMMON_H |
27 | #define COMMON_H | 27 | #define GNUNET_FS_GTK_COMMON_H |
28 | 28 | ||
29 | #include "gnunet_gtk.h" | 29 | #include "gnunet_gtk.h" |
30 | #include <gnunet/gnunet_fs_service.h> | 30 | #include <gnunet/gnunet_fs_service.h> |
31 | #include <extractor.h> | 31 | #include <extractor.h> |
32 | 32 | ||
33 | 33 | ||
34 | 34 | /** | |
35 | * Obtain pixbuf from thumbnail data in meta data. | ||
36 | * | ||
37 | * @param meta input meta data | ||
38 | * @return NULL on error, otherwise the embedded thumbnail | ||
39 | */ | ||
35 | GdkPixbuf * | 40 | GdkPixbuf * |
36 | GNUNET_FS_GTK_get_thumbnail_from_meta_data (const struct GNUNET_CONTAINER_MetaData *meta); | 41 | GNUNET_FS_GTK_get_thumbnail_from_meta_data (const struct GNUNET_CONTAINER_MetaData *meta); |
37 | 42 | ||
43 | |||
38 | /** | 44 | /** |
45 | * FIXME: odd API... | ||
39 | * Setup the expiration year adjustment to start with the | 46 | * Setup the expiration year adjustment to start with the |
40 | * next year and default to next year plus one. | 47 | * next year and default to next year plus one. |
48 | * | ||
49 | * @param builder | ||
41 | */ | 50 | */ |
42 | void | 51 | void |
43 | GNUNET_FS_GTK_setup_expiration_year_adjustment (GtkBuilder *builder); | 52 | GNUNET_FS_GTK_setup_expiration_year_adjustment (GtkBuilder *builder); |
44 | 53 | ||
54 | |||
45 | /** | 55 | /** |
46 | * Convert the year from the spin button to an expiration | 56 | * Convert the year from the spin button to an expiration |
47 | * time (on midnight, January 1st of that year). | 57 | * time (on midnight, January 1st of that year). |
58 | * | ||
59 | * @param spin button with the year | ||
60 | * @param time converted from the spin button | ||
48 | */ | 61 | */ |
49 | struct GNUNET_TIME_Absolute | 62 | struct GNUNET_TIME_Absolute |
50 | GNUNET_FS_GTK_get_expiration_time (GtkSpinButton *spin); | 63 | GNUNET_FS_GTK_get_expiration_time (GtkSpinButton *spin); |
@@ -53,6 +66,10 @@ GNUNET_FS_GTK_get_expiration_time (GtkSpinButton *spin); | |||
53 | /** | 66 | /** |
54 | * mmap the given file and run the GNUNET_FS_directory_list_contents | 67 | * mmap the given file and run the GNUNET_FS_directory_list_contents |
55 | * function on it. | 68 | * function on it. |
69 | * | ||
70 | * @param filename name with the directory | ||
71 | * @param dep function to call on each entry | ||
72 | * @param dep_cls closure for 'dep' | ||
56 | */ | 73 | */ |
57 | void | 74 | void |
58 | GNUNET_FS_GTK_mmap_and_scan (const char *filename, | 75 | GNUNET_FS_GTK_mmap_and_scan (const char *filename, |
@@ -86,4 +103,4 @@ GNUNET_FS_GTK_add_meta_data_to_list_store (void *cls, | |||
86 | size_t data_len); | 103 | size_t data_len); |
87 | 104 | ||
88 | #endif | 105 | #endif |
89 | /* end of common.h */ | 106 | /* end of gnunet-fs-gtk-common.h */ |