Commit 5392cbba authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

rtsp-server: Declare GstRTSPServer struct before anything else

It's needed by all kinds of other headers, including the ones that are
required for defining the GstRTSPServer struct itself and its API.
parent d525000f
......@@ -17,13 +17,17 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_RTSP_SERVER_H__
#define __GST_RTSP_SERVER_H__
#ifndef __GST_RTSP_SERVER_OBJECT_H__
#define __GST_RTSP_SERVER_OBJECT_H__
#include <gst/gst.h>
G_BEGIN_DECLS
typedef struct _GstRTSPServer GstRTSPServer;
typedef struct _GstRTSPServerClass GstRTSPServerClass;
typedef struct _GstRTSPServerPrivate GstRTSPServerPrivate;
#include "rtsp-server-prelude.h"
#include "rtsp-session-pool.h"
#include "rtsp-session.h"
......@@ -44,10 +48,6 @@ G_BEGIN_DECLS
#include "rtsp-media-factory-uri.h"
#include "rtsp-params.h"
typedef struct _GstRTSPServer GstRTSPServer;
typedef struct _GstRTSPServerClass GstRTSPServerClass;
typedef struct _GstRTSPServerPrivate GstRTSPServerPrivate;
#define GST_TYPE_RTSP_SERVER (gst_rtsp_server_get_type ())
#define GST_IS_RTSP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_RTSP_SERVER))
#define GST_IS_RTSP_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_RTSP_SERVER))
......@@ -202,4 +202,4 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPServer, gst_object_unref)
G_END_DECLS
#endif /* __GST_RTSP_SERVER_H__ */
#endif /* __GST_RTSP_SERVER_OBJECT_H__ */
......@@ -25,6 +25,7 @@
G_BEGIN_DECLS
#include "rtsp-server-prelude.h"
#include "rtsp-server-object.h"
#include "rtsp-session-pool.h"
#include "rtsp-session.h"
#include "rtsp-media.h"
......@@ -44,7 +45,6 @@ G_BEGIN_DECLS
#include "rtsp-sdp.h"
#include "rtsp-media-factory-uri.h"
#include "rtsp-params.h"
#include "rtsp-server-object.h"
#include "rtsp-onvif-client.h"
#include "rtsp-onvif-media-factory.h"
......
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