debug-manager: removed size_request
[anjuta.git] / libanjuta / anjuta-token-stream.h
blob170b34fea58bd2ec13e5bfa9f39dd319284cfb3b
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta-token-stream.h
4 * Copyright (C) Sébastien Granjoux 2009 <seb.sfo@free.fr>
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _ANJUTA_TOKEN_STREAM_H_
21 #define _ANJUTA_TOKEN_STREAM_H_
23 #include <glib.h>
25 #include <libanjuta/anjuta-token.h>
27 G_BEGIN_DECLS
29 typedef struct _AnjutaTokenStream AnjutaTokenStream;
31 AnjutaTokenStream *anjuta_token_stream_push (AnjutaTokenStream *stream, AnjutaToken *root, AnjutaToken *content, GFile *filename);
32 AnjutaTokenStream *anjuta_token_stream_pop (AnjutaTokenStream *stream);
34 AnjutaToken* anjuta_token_stream_get_root (AnjutaTokenStream *stream);
35 GFile* anjuta_token_stream_get_current_directory (AnjutaTokenStream *stream);
37 AnjutaToken* anjuta_token_stream_tokenize (AnjutaTokenStream *stream, gint type, gsize length);
38 gint anjuta_token_stream_read (AnjutaTokenStream *stream, gchar *buffer, gsize max_size);
40 void anjuta_token_stream_append_token (AnjutaTokenStream *stream, AnjutaToken *token);
43 G_END_DECLS
45 #endif