/usr/include/gpaste/gpaste-storage-backend.h is in libgpaste-dev 3.28.0-2.
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 | /*
* This file is part of GPaste.
*
* Copyright (c) 2010-2018, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
*/
#if !defined (__G_PASTE_H_INSIDE__) && !defined (G_PASTE_COMPILATION)
#error "Only <gpaste.h> can be included directly."
#endif
#ifndef __G_PASTE_STORAGE_BACKEND_H__
#define __G_PASTE_STORAGE_BACKEND_H__
#include <gpaste-settings.h>
G_BEGIN_DECLS
typedef enum {
G_PASTE_STORAGE_FILE,
G_PASTE_STORAGE_DEFAULT = G_PASTE_STORAGE_FILE
} GPasteStorage;
#define G_PASTE_TYPE_STORAGE_BACKEND (g_paste_storage_backend_get_type ())
G_PASTE_DERIVABLE_TYPE (StorageBackend, storage_backend, STORAGE_BACKEND, GObject)
struct _GPasteStorageBackendClass
{
GObjectClass parent_class;
/*< pure virtual >*/
void (*read_history_file) (const GPasteStorageBackend *self,
const gchar *history_file_path,
GList **history,
gsize *size);
void (*write_history_file) (const GPasteStorageBackend *self,
const gchar *history_file_path,
const GList *history);
/*< protected >*/
const gchar *(*get_extension) (const GPasteStorageBackend *self);
const GPasteSettings *(*get_settings) (const GPasteStorageBackend *self);
};
void g_paste_storage_backend_read_history (const GPasteStorageBackend *self,
const gchar *name,
GList **history,
gsize *size);
void g_paste_storage_backend_write_history (const GPasteStorageBackend *self,
const gchar *name,
const GList *history);
GPasteStorageBackend *g_paste_storage_backend_new (GPasteStorage storage_kind,
GPasteSettings *settings);
G_END_DECLS
#endif /*__G_PASTE_STORAGE_BACKEND_H__*/
|