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.
This commit is contained in:
Sebastian Dröge 2018-11-01 11:29:01 +02:00
parent d525000f6a
commit 5392cbba8a
2 changed files with 8 additions and 8 deletions

View file

@ -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__ */

View file

@ -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"