3 * Copyright (C) 2002-2009 Ushodaya Enterprises Limited
4 * Author: Charles Yates <charles.yates@pandora.be>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef _MELTED_SERVER_H_
22 #define _MELTED_SERVER_H_
24 /* System header files */
27 /* Application header files */
28 #include <mvcp/mvcp_parser.h>
35 /** Servers default port
38 #define DEFAULT_TCP_PORT 5250
40 /** Structure for the server
45 struct mlt_properties_s parent
;
53 char remote_server
[ 50 ];
57 *melted_server
, melted_server_t
;
59 /** API for the server
62 extern melted_server
melted_server_init( char * );
63 extern const char *melted_server_id( melted_server
);
64 extern void melted_server_set_config( melted_server
, const char * );
65 extern void melted_server_set_port( melted_server
, int );
66 extern void melted_server_set_proxy( melted_server
, char * );
67 extern int melted_server_execute( melted_server
);
68 extern mlt_properties
melted_server_fetch_unit( melted_server
, int );
69 extern void melted_server_shutdown( melted_server
);
70 extern void melted_server_close( melted_server
);