114343Swollman/* 22742Swollman * Copyright 2009, Haiku Inc. All Rights Reserved. 32742Swollman * Distributed under the terms of the MIT License. 42742Swollman */ 52742Swollman#ifndef _TRANSLATOR_ADD_ON_H 62742Swollman#define _TRANSLATOR_ADD_ON_H 714343Swollman 82742Swollman 92742Swollman#include <TranslationDefs.h> 102742Swollman 112742Swollman 122742Swollmanclass BMessage; 132742Swollmanclass BView; 142742Swollmanclass BRect; 152742Swollmanclass BPositionIO; 162742Swollman 172742Swollman 182742Swollman// Deprecated, use BTranslator API instead 192742Swollman 202742Swollmanextern char translatorName[]; 212742Swollmanextern char translatorInfo[]; 222742Swollmanextern int32 translatorVersion; 232742Swollman 242742Swollmanextern translation_format inputFormats[]; // optional 252742Swollmanextern translation_format outputFormats[]; // optional 262742Swollman 272742Swollman 282742Swollmanextern "C" { 292742Swollman 302742Swollmanextern status_t Identify(BPositionIO* source, const translation_format* format, 3114343Swollman BMessage* extension, translator_info* info, uint32 outType); 322742Swollmanextern status_t Translate(BPositionIO* source, const translator_info* info, 3314343Swollman BMessage* extension, uint32 outType, 3414343Swollman BPositionIO* destination); 352742Swollmanextern status_t MakeConfig(BMessage* extension, BView** _view, BRect* _frame); 362742Swollmanextern status_t GetConfigMessage(BMessage* extension); 3714343Swollman 3814343Swollman} 392742Swollman 4014343Swollman 412742Swollman#endif //_TRANSLATOR_ADD_ON_H 422742Swollman