xref: /haiku/headers/os/translation/TranslatorAddOn.h (revision d7571ebcf7b31d7fa5d55a500910ee288a22bd00)
1 /*
2  * Copyright 2009, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _TRANSLATOR_ADD_ON_H
6 #define _TRANSLATOR_ADD_ON_H
7 
8 
9 #include <TranslationDefs.h>
10 
11 
12 class BMessage;
13 class BView;
14 class BRect;
15 class BPositionIO;
16 
17 
18 // Deprecated, use BTranslator API instead
19 
20 extern char translatorName[];
21 extern char translatorInfo[];
22 extern int32 translatorVersion;
23 
24 extern translation_format inputFormats[];	// optional
25 extern	translation_format outputFormats[];	// optional
26 
27 
28 extern "C" {
29 
30 extern status_t	Identify(BPositionIO* source, const translation_format* format,
31 					BMessage* extension, translator_info* info, uint32 outType);
32 extern status_t	Translate(BPositionIO* source, const translator_info* info,
33 					BMessage* extension, uint32 outType,
34 					BPositionIO* destination);
35 extern status_t	MakeConfig(BMessage* extension, BView** _view, BRect* _frame);
36 extern status_t	GetConfigMessage(BMessage* extension);
37 
38 }
39 
40 
41 #endif	//_TRANSLATOR_ADD_ON_H
42