/usr/include/xneur/xneur.h is in libxneur-dev 0.15.0-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Copyright (C) 2006-2010 XNeur Team
*
*/
#ifndef _XNEUR_H_
#define _XNEUR_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#ifdef WITH_ASPELL
# include <aspell.h>
#endif
#ifdef WITH_ENCHANT
# include <enchant/enchant.h>
#endif
struct _window *main_window;
struct _xneur_language
{
char *dir;
char *name;
int group;
int excluded;
int disable_auto_detection;
struct _list_char *temp_dictionary;
struct _list_char *dictionary;
struct _list_char *proto;
struct _list_char *big_proto;
struct _list_char *pattern;
};
// Main xneur structure
struct _xneur_handle
{
struct _xneur_language *languages;
int total_languages;
#ifdef WITH_ASPELL
// global aspell dictionaries
AspellConfig *spell_config;
AspellSpeller **spell_checkers;
int *has_spell_checker;
#endif
#ifdef WITH_ENCHANT
// global enchant dictionaries
EnchantBroker *enchant_broker;
EnchantDict **enchant_dicts;
int *has_enchant_checker;
#endif
};
// Initialyze structure (must be installed proto, proto3, dict and regexp)
// One application - one create.
struct _xneur_handle *xneur_handle_create (void);
// Destroy structure
void xneur_handle_destroy (struct _xneur_handle *handle);
// Check WORD. Library return alleged new word and it's layout
// 1. Layout
int xneur_get_layout (struct _xneur_handle *handle, char *word);
// 1. New word
char *xneur_get_word (struct _xneur_handle *handle, char *word);
#endif /* _XNEUR_H_ */
|