2
* Compiz configuration system library
4
* ccs_text_file_interface.h
6
* Copyright (C) 2012 Canonical Ltd.
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
* Sam Spilsbury <sam.spilsbury@canonical.com>
25
#ifndef CCS_TEXT_FILE_INTERFACE_H
26
#define CCS_TEXT_FILE_INTERFACE_H
29
#include <ccs-object.h>
31
COMPIZCONFIG_BEGIN_DECLS
33
typedef struct _CCSTextFile CCSTextFile;
34
typedef struct _CCSTextFileInterface CCSTextFileInterface;
36
typedef char * (*CCSReadTextFileFromStart) (CCSTextFile *file);
37
typedef Bool (*CCSAppendStringToTextFile) (CCSTextFile *file, const char *str);
38
typedef void (*CCSFreeTextFile) (CCSTextFile *file);
40
struct _CCSTextFileInterface
42
CCSReadTextFileFromStart readFromStart;
43
CCSAppendStringToTextFile appendString;
52
CCSREF_HDR (TextFile, CCSTextFile);
55
ccsTextFileReadFromStart (CCSTextFile *);
58
ccsTextFileAppendString (CCSTextFile *, const char *);
61
ccsFreeTextFile (CCSTextFile *);
63
unsigned int ccsCCSTextFileInterfaceGetType ();
65
COMPIZCONFIG_END_DECLS