Updated Spanish translation
[anjuta.git] / libanjuta / anjuta-token-stream.h
blob8654f811676410bd57f76aa0354362a1a346c73b
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 *parent, AnjutaToken *root, AnjutaToken *content, GFile *file);
32 AnjutaTokenStream *anjuta_token_stream_pop (AnjutaTokenStream *stream);
33 AnjutaTokenStream *anjuta_token_stream_get_parent (AnjutaTokenStream *stream);
35 AnjutaToken* anjuta_token_stream_get_root (AnjutaTokenStream *stream);
36 GFile* anjuta_token_stream_get_current_directory (AnjutaTokenStream *stream);
37 GFile* anjuta_token_stream_get_current_file (AnjutaTokenStream *stream);
39 AnjutaToken* anjuta_token_stream_tokenize (AnjutaTokenStream *stream, gint type, gsize length);
40 gint anjuta_token_stream_read (AnjutaTokenStream *stream, gchar *buffer, gsize max_size);
42 void anjuta_token_stream_append_token (AnjutaTokenStream *stream, AnjutaToken *token);
45 G_END_DECLS
47 #endif