mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-dispd: rename field from ref_count to ref
Change-Id: Ia8138c0609b0100dd2784734287a4b3964beacbd
This commit is contained in:
parent
181618ea53
commit
5f098041fd
2 changed files with 6 additions and 6 deletions
|
@ -202,7 +202,7 @@ int wfd_session_teardown(struct wfd_session *s)
|
||||||
struct wfd_session * wfd_session_ref(struct wfd_session *s)
|
struct wfd_session * wfd_session_ref(struct wfd_session *s)
|
||||||
{
|
{
|
||||||
if(s) {
|
if(s) {
|
||||||
++ s->ref_count;
|
++ s->ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
|
@ -214,10 +214,10 @@ void wfd_session_unref(struct wfd_session *s)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(1 <= s->ref_count);
|
assert(1 <= s->ref);
|
||||||
|
|
||||||
-- s->ref_count;
|
-- s->ref;
|
||||||
if(s->ref_count) {
|
if(s->ref) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -556,7 +556,7 @@ int wfd_session_init(struct wfd_session *s,
|
||||||
enum wfd_session_dir dir,
|
enum wfd_session_dir dir,
|
||||||
const struct rtsp_dispatch_entry *disp_tbl)
|
const struct rtsp_dispatch_entry *disp_tbl)
|
||||||
{
|
{
|
||||||
s->ref_count = 1;
|
s->ref = 1;
|
||||||
s->id = id;
|
s->id = id;
|
||||||
s->dir = dir;
|
s->dir = dir;
|
||||||
s->rtsp_disp_tbl = disp_tbl;
|
s->rtsp_disp_tbl = disp_tbl;
|
||||||
|
|
|
@ -93,7 +93,7 @@ struct wfd_session_vtable
|
||||||
|
|
||||||
struct wfd_session
|
struct wfd_session
|
||||||
{
|
{
|
||||||
int ref_count;
|
int ref;
|
||||||
enum wfd_session_dir dir;
|
enum wfd_session_dir dir;
|
||||||
enum wfd_session_state state;
|
enum wfd_session_state state;
|
||||||
enum rtsp_message_id last_request;
|
enum rtsp_message_id last_request;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue