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)
|
||||
{
|
||||
if(s) {
|
||||
++ s->ref_count;
|
||||
++ s->ref;
|
||||
}
|
||||
|
||||
return s;
|
||||
|
@ -214,10 +214,10 @@ void wfd_session_unref(struct wfd_session *s)
|
|||
return;
|
||||
}
|
||||
|
||||
assert(1 <= s->ref_count);
|
||||
assert(1 <= s->ref);
|
||||
|
||||
-- s->ref_count;
|
||||
if(s->ref_count) {
|
||||
-- s->ref;
|
||||
if(s->ref) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -556,7 +556,7 @@ int wfd_session_init(struct wfd_session *s,
|
|||
enum wfd_session_dir dir,
|
||||
const struct rtsp_dispatch_entry *disp_tbl)
|
||||
{
|
||||
s->ref_count = 1;
|
||||
s->ref = 1;
|
||||
s->id = id;
|
||||
s->dir = dir;
|
||||
s->rtsp_disp_tbl = disp_tbl;
|
||||
|
|
|
@ -93,7 +93,7 @@ struct wfd_session_vtable
|
|||
|
||||
struct wfd_session
|
||||
{
|
||||
int ref_count;
|
||||
int ref;
|
||||
enum wfd_session_dir dir;
|
||||
enum wfd_session_state state;
|
||||
enum rtsp_message_id last_request;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue