From: lilo_booter Date: Mon, 3 Jan 2005 14:29:44 +0000 (+0000) Subject: Fetch unit from miracle server X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=6ff05de8e70fc55abfdec249c277cccc9ef02b4d;p=melted Fetch unit from miracle server git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@601 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/miracle/miracle_server.c b/src/miracle/miracle_server.c index 1ea982f..151ce31 100644 --- a/src/miracle/miracle_server.c +++ b/src/miracle/miracle_server.c @@ -41,6 +41,7 @@ #include "miracle_connection.h" #include "miracle_local.h" #include "miracle_log.h" +#include "miracle_commands.h" #include #include @@ -298,6 +299,15 @@ int miracle_server_execute( miracle_server server ) return error; } +/** Fetch a units properties +*/ + +mlt_properties miracle_server_fetch_unit( miracle_server server, int index ) +{ + miracle_unit unit = miracle_get_unit( index ); + return unit != NULL ? unit->properties : NULL; +} + /** Shutdown the server. */ diff --git a/src/miracle/miracle_server.h b/src/miracle/miracle_server.h index d480af5..a0a9462 100644 --- a/src/miracle/miracle_server.h +++ b/src/miracle/miracle_server.h @@ -65,6 +65,7 @@ extern void miracle_server_set_config( miracle_server, char * ); extern void miracle_server_set_port( miracle_server, int ); extern void miracle_server_set_proxy( miracle_server, char * ); extern int miracle_server_execute( miracle_server ); +extern mlt_properties miracle_server_fetch_unit( miracle_server, int ); extern void miracle_server_shutdown( miracle_server ); extern void miracle_server_close( miracle_server );