Commit 9d21be1b authored by Ghislain MARY's avatar Ghislain MARY

Fix some symbol exports.

parent 841c656e
......@@ -24,12 +24,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "mediastreamer2/mediastream.h"
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__)
#ifdef MEDIASTREAMER2_INTERNAL_EXPORTS
#define MEDIASTREAMER2_INTERNAL_EXPORT __declspec(dllexport)
#define MEDIASTREAMER2_INTERNAL_VAR_EXPORT __declspec(dllexport)
#else
#define MEDIASTREAMER2_INTERNAL_EXPORT
#define MEDIASTREAMER2_INTERNAL_VAR_EXPORT extern __declspec(dllimport)
#endif
#else
#define MEDIASTREAMER2_INTERNAL_EXPORT extern
#define MEDIASTREAMER2_INTERNAL_VAR_EXPORT extern
#endif
#define MAX_RTP_SIZE UDP_MAX_SIZE
MSTickerPrio __ms_get_default_prio(bool_t is_video);
RtpSession * create_duplex_rtpsession(int loc_rtp_port, int loc_rtcp_port, bool_t ipv6);
MEDIASTREAMER2_INTERNAL_EXPORT RtpSession * create_duplex_rtpsession(int loc_rtp_port, int loc_rtcp_port, bool_t ipv6);
void start_ticker(MediaStream *stream);
......
......@@ -210,6 +210,7 @@ static void dtmfgen_rtp(void) {
ms_filter_destroy(rtprecv);
ms_filter_destroy(decoder);
ms_filter_destroy(encoder);
rtp_session_destroy(rtps);
common_uninit();
}
......
......@@ -21,20 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define _MEDIASTREAMER2_TESTER_H
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__)
#ifdef MEDIASTREAMER2_TESTER_EXPORTS
#define MEDIASTREAMER2_TESTER_EXPORT __declspec(dllexport)
#define MEDIASTREAMER2_TESTER_VAR_EXPORT __declspec(dllexport)
#else
#define MEDIASTREAMER2_TESTER_EXPORT
#define MEDIASTREAMER2_TESTER_VAR_EXPORT extern __declspec(dllimport)
#endif
#else
#define MEDIASTREAMER2_TESTER_EXPORT extern
#define MEDIASTREAMER2_TESTER_VAR_EXPORT extern
#endif
typedef void (*test_function_t)(void);
typedef int (*test_suite_function_t)(const char *name);
......@@ -54,16 +40,16 @@ typedef struct {
extern "C" {
#endif
MEDIASTREAMER2_TESTER_VAR_EXPORT test_suite_t dtmfgen_test_suite;
extern test_suite_t dtmfgen_test_suite;
MEDIASTREAMER2_TESTER_EXPORT int mediastreamer2_tester_nb_test_suites(void);
MEDIASTREAMER2_TESTER_EXPORT int mediastreamer2_tester_nb_tests(const char *suite_name);
MEDIASTREAMER2_TESTER_EXPORT const char * mediastreamer2_tester_test_suite_name(int suite_index);
MEDIASTREAMER2_TESTER_EXPORT const char * mediastreamer2_tester_test_name(const char *suite_name, int test_index);
MEDIASTREAMER2_TESTER_EXPORT void mediastreamer2_tester_init(void);
MEDIASTREAMER2_TESTER_EXPORT void mediastreamer2_tester_uninit(void);
MEDIASTREAMER2_TESTER_EXPORT int mediastreamer2_tester_run_tests(const char *suite_name, const char *test_name);
extern int mediastreamer2_tester_nb_test_suites(void);
extern int mediastreamer2_tester_nb_tests(const char *suite_name);
extern const char * mediastreamer2_tester_test_suite_name(int suite_index);
extern const char * mediastreamer2_tester_test_name(const char *suite_name, int test_index);
extern void mediastreamer2_tester_init(void);
extern void mediastreamer2_tester_uninit(void);
extern int mediastreamer2_tester_run_tests(const char *suite_name, const char *test_name);
#ifdef __cplusplus
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment