clean code and changed version nro.
[irreco.git] / irreco / src / util / irreco_backend_file_container.h
blob95fef3db49c27c4c5c94ddeedf653315b518e6b9
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2008 Joni Kokko (t5kojo01@students.oamk.fi)
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 /**
21 * @addtogroup IrrecoBackendFileContainer
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoBackendFileContainer.
30 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
31 /* Typedef */
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 * Make sure that typedefs are available before we include anything elese.
36 * This makes sure that whatever other structures that depend on structures
37 * defined in this file will compile OK recardles of header inclusion order.
39 #ifndef __BACKEND_FILE_CONTAINER_H_TYPEDEF__
40 #define __BACKEND_FILE_CONTAINER_H_TYPEDEF__
41 typedef struct _IrrecoBackendFileContainer IrrecoBackendFileContainer;
42 #endif /* __BACKEND_FILE_CONTAINER_H_TYPEDEF__ */
46 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
47 /* Include */
48 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
49 #ifndef __BACKEND_FILE_CONTAINER_H__
50 #define __BACKEND_FILE_CONTAINER_H__
51 #include "irreco_sha1.h"
52 #include "irreco_util.h"
55 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
56 /* Datatypes */
57 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
59 struct _IrrecoBackendFileContainer
61 GString *backend;
62 GString *category;
63 GString *manufacturer;
64 GString *model;
65 GString *hash;
66 GString *name;
67 GString *data;
70 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
71 /* Macro */
72 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
76 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
77 /* Prototypes */
78 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
80 IrrecoBackendFileContainer *irreco_backend_file_container_new();
81 void irreco_backend_file_container_free(IrrecoBackendFileContainer *self);
83 void irreco_backend_file_container_set(IrrecoBackendFileContainer *self,
84 const char *backend,
85 const char *category,
86 const char *manufacturer,
87 const char *model,
88 const char *file_name,
89 const char *file_data);
91 void irreco_backend_file_container_set_model(IrrecoBackendFileContainer *self,
92 const char *model);
93 #endif /* __BACKEND_FILE_CONTAINER_H__ */
95 /** @} */