1 /* Copyright (C) 2016-2017 Shengyu Zhang <i@silverrainz.me>
2  *
3  * This file is part of Srain.
4  *
5  * Srain is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
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.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef __SUI_CHANNEL_BUFFER_H
20 #define __SUI_CHANNEL_BUFFER_H
21 
22 #include <gtk/gtk.h>
23 
24 #include "sui/sui.h"
25 
26 #define SUI_TYPE_CHANNEL_BUFFER (sui_channel_buffer_get_type())
27 #define SUI_CHANNEL_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SUI_TYPE_CHANNEL_BUFFER, SuiChannelBuffer))
28 #define SUI_IS_CHANNEL_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SUI_TYPE_CHANNEL_BUFFER))
29 
30 typedef struct _SuiChannelBuffer SuiChannelBuffer;
31 typedef struct _SuiChannelBufferClass SuiChannelBufferClass;
32 
33 GType sui_channel_buffer_get_type(void);
34 SuiChannelBuffer* sui_channel_buffer_new(void *ctx, SuiBufferEvents *events, SuiBufferConfig *cfg);
35 
36 #endif /* __SUI_CHANNEL_BUFFER_H */
37