Hi,this patch allow to build libmvcp code without mlt framework so it makes possible to include in other projects without additional dependences, but limit user to send xml over mvcp
-- ________________________________________ Maksym Veremeyenko
>From 2bedd271e7919d8215de496bff222381e98c8a67 Mon Sep 17 00:00:00 2001 From: Maksym Veremeyenko <[email protected]> Date: Tue, 26 Jun 2012 23:28:51 +0300 Subject: [PATCH] allow build mvcp client without mlt framework --- src/mvcp/mvcp.h | 4 ++++ src/mvcp/mvcp_parser.h | 4 ++++ src/mvcp/mvcp_remote.c | 6 ++++++ 3 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/mvcp/mvcp.h b/src/mvcp/mvcp.h index 9490e6d..12fcee7 100644 --- a/src/mvcp/mvcp.h +++ b/src/mvcp/mvcp.h @@ -25,7 +25,11 @@ #include <limits.h> /* MLT Header files. */ +#ifndef MVCP_EMBEDDED #include <framework/mlt.h> +#else +#define mlt_service void * +#endif /* Application header files */ #include "mvcp_parser.h" diff --git a/src/mvcp/mvcp_parser.h b/src/mvcp/mvcp_parser.h index 67d2bba..9240aa7 100644 --- a/src/mvcp/mvcp_parser.h +++ b/src/mvcp/mvcp_parser.h @@ -22,7 +22,11 @@ #define _MVCP_PARSER_H_ /* MLT Header files */ +#ifndef MVCP_EMBEDDED #include <framework/mlt.h> +#else +#define mlt_service void * +#endif /* Application header files */ #include "mvcp_response.h" diff --git a/src/mvcp/mvcp_remote.c b/src/mvcp/mvcp_remote.c index 6ea0430..8ad0e9d 100644 --- a/src/mvcp/mvcp_remote.c +++ b/src/mvcp/mvcp_remote.c @@ -27,7 +27,11 @@ #include <pthread.h> /* Application header files */ +#ifndef MVCP_EMBEDDED #include <framework/mlt.h> +#else +#define mlt_service void * +#endif #include "mvcp_remote.h" #include "mvcp_socket.h" #include "mvcp_tokeniser.h" @@ -226,6 +230,7 @@ static mvcp_response mvcp_remote_receive( mvcp_remote remote, char *command, cha static mvcp_response mvcp_remote_push( mvcp_remote remote, char *command, mlt_service service ) { mvcp_response response = NULL; +#ifndef MVCP_EMBEDDED if ( service != NULL ) { mlt_consumer consumer = mlt_factory_consumer( NULL, "xml", "buffer" ); @@ -239,6 +244,7 @@ static mvcp_response mvcp_remote_push( mvcp_remote remote, char *command, mlt_se response = mvcp_remote_receive( remote, command, buffer ); mlt_consumer_close( consumer ); } +#endif return response; } -- 1.7.4.4
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
