Skip to content

Commit a5c54a9

Browse files
committed
c_basicRTSPOnlyServer: mv rtsp_serv def to .cpp
hide struct rtsp_serv definition by moving it to .cpp
1 parent 4a4716f commit a5c54a9

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/rtsp/c_basicRTSPOnlyServer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Gerard Castillo <[email protected]>
55
*
66
* Copyright (c) 2005-2010 Fundació i2CAT, Internet I Innovació Digital a Catalunya
7+
* Copyright (c) 2014-2025 CESNET
78
*
89
* Redistribution and use in source and binary forms, with or without
910
* modification, is permitted provided that the following conditions
@@ -47,6 +48,12 @@
4748
#include "rtsp/c_basicRTSPOnlyServer.h"
4849
#include "rtsp/BasicRTSPOnlyServer.hh"
4950

51+
struct rtsp_serv {
52+
struct rtsp_server_parameters params;
53+
pthread_t server_th;
54+
uint8_t watch;
55+
};
56+
5057
rtsp_serv_t *
5158
c_start_server(struct rtsp_server_parameters params)
5259
{

src/rtsp/c_basicRTSPOnlyServer.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Gerard Castillo <[email protected]>
55
*
66
* Copyright (c) 2005-2010 Fundació i2CAT, Internet I Innovació Digital a Catalunya
7+
* Copyright (c) 2014-2025 CESNET
78
*
89
* Redistribution and use in source and binary forms, with or without
910
* modification, is permitted provided that the following conditions
@@ -74,11 +75,8 @@ struct rtsp_server_parameters {
7475
codec_t video_codec;
7576
};
7677

77-
EXTERNC typedef struct rtsp_serv {
78-
struct rtsp_server_parameters params;
79-
pthread_t server_th;
80-
uint8_t watch;
81-
} rtsp_serv_t;
78+
struct rtsp_serv;
79+
typedef struct rtsp_serv rtsp_serv_t;
8280

8381
EXTERNC rtsp_serv_t *c_start_server(struct rtsp_server_parameters params);
8482

0 commit comments

Comments
 (0)