Skip to content

Commit 666aac3

Browse files
committed
Rename internal structures and methods to not use rtpp_wref,
which is now its own TU.
1 parent a788df7 commit 666aac3

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

src/rtpp_weakref.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,29 @@ struct rtpp_weakref_priv {
5050

5151
static void rtpp_weakref_dtor(struct rtpp_weakref_priv *);
5252
static int rtpp_weakref_reg(struct rtpp_weakref *, struct rtpp_refcnt *, uint64_t);
53-
static void *rtpp_wref_get_by_idx(struct rtpp_weakref *, uint64_t);
53+
static void *rtpp_wrt_get_by_idx(struct rtpp_weakref *, uint64_t);
5454
static struct rtpp_refcnt *rtpp_weakref_unreg(struct rtpp_weakref *, uint64_t);
5555
static struct rtpp_refcnt *rtpp_weakref_move(struct rtpp_weakref *, uint64_t,
5656
struct rtpp_weakref *);
57-
static void rtpp_wref_foreach(struct rtpp_weakref *, rtpp_weakref_foreach_t,
57+
static void rtpp_wrt_foreach(struct rtpp_weakref *, rtpp_weakref_foreach_t,
5858
void *);
59-
static int rtpp_wref_get_length(struct rtpp_weakref *);
60-
static int rtpp_wref_purge(struct rtpp_weakref *);
61-
static rtpp_weakref_cb_t rtpp_wref_set_on_first(struct rtpp_weakref *, rtpp_weakref_cb_t,
59+
static int rtpp_wrt_get_length(struct rtpp_weakref *);
60+
static int rtpp_wrt_purge(struct rtpp_weakref *);
61+
static rtpp_weakref_cb_t rtpp_wrt_set_on_first(struct rtpp_weakref *, rtpp_weakref_cb_t,
6262
void *);
63-
static rtpp_weakref_cb_t rtpp_wref_set_on_last(struct rtpp_weakref *, rtpp_weakref_cb_t,
63+
static rtpp_weakref_cb_t rtpp_wrt_set_on_last(struct rtpp_weakref *, rtpp_weakref_cb_t,
6464
void *);
6565

6666
DEFINE_SMETHODS(rtpp_weakref,
6767
.reg = &rtpp_weakref_reg,
68-
.get_by_idx = &rtpp_wref_get_by_idx,
68+
.get_by_idx = &rtpp_wrt_get_by_idx,
6969
.unreg = &rtpp_weakref_unreg,
7070
.move = &rtpp_weakref_move,
71-
.foreach = &rtpp_wref_foreach,
72-
.get_length = &rtpp_wref_get_length,
73-
.purge = &rtpp_wref_purge,
74-
.set_on_first = &rtpp_wref_set_on_first,
75-
.set_on_last = &rtpp_wref_set_on_last,
71+
.foreach = &rtpp_wrt_foreach,
72+
.get_length = &rtpp_wrt_get_length,
73+
.purge = &rtpp_wrt_purge,
74+
.set_on_first = &rtpp_wrt_set_on_first,
75+
.set_on_last = &rtpp_wrt_set_on_last,
7676
);
7777

7878
struct rtpp_weakref *
@@ -206,7 +206,7 @@ rtpp_weakref_dtor(struct rtpp_weakref_priv *pvt)
206206
}
207207

208208
static void *
209-
rtpp_wref_get_by_idx(struct rtpp_weakref *pub, uint64_t suid)
209+
rtpp_wrt_get_by_idx(struct rtpp_weakref *pub, uint64_t suid)
210210
{
211211
struct rtpp_weakref_priv *pvt;
212212
struct rtpp_refcnt *rco;
@@ -221,7 +221,7 @@ rtpp_wref_get_by_idx(struct rtpp_weakref *pub, uint64_t suid)
221221
}
222222

223223
static void
224-
rtpp_wref_foreach(struct rtpp_weakref *pub, rtpp_weakref_foreach_t foreach_f,
224+
rtpp_wrt_foreach(struct rtpp_weakref *pub, rtpp_weakref_foreach_t foreach_f,
225225
void *foreach_d)
226226
{
227227
struct rtpp_weakref_priv *pvt;
@@ -247,7 +247,7 @@ rtpp_wref_foreach(struct rtpp_weakref *pub, rtpp_weakref_foreach_t foreach_f,
247247
}
248248

249249
static int
250-
rtpp_wref_get_length(struct rtpp_weakref *pub)
250+
rtpp_wrt_get_length(struct rtpp_weakref *pub)
251251
{
252252
struct rtpp_weakref_priv *pvt;
253253

@@ -256,7 +256,7 @@ rtpp_wref_get_length(struct rtpp_weakref *pub)
256256
}
257257

258258
static int
259-
rtpp_wref_purge(struct rtpp_weakref *pub)
259+
rtpp_wrt_purge(struct rtpp_weakref *pub)
260260
{
261261
struct rtpp_weakref_priv *pvt;
262262
int npurged;
@@ -278,7 +278,7 @@ rtpp_wref_purge(struct rtpp_weakref *pub)
278278
}
279279

280280
static rtpp_weakref_cb_t
281-
rtpp_wref_set_on_first(struct rtpp_weakref *pub, rtpp_weakref_cb_t cb_func,
281+
rtpp_wrt_set_on_first(struct rtpp_weakref *pub, rtpp_weakref_cb_t cb_func,
282282
void *cb_func_arg)
283283
{
284284
struct rtpp_weakref_priv *pvt;
@@ -292,7 +292,7 @@ rtpp_wref_set_on_first(struct rtpp_weakref *pub, rtpp_weakref_cb_t cb_func,
292292
}
293293

294294
static rtpp_weakref_cb_t
295-
rtpp_wref_set_on_last(struct rtpp_weakref *pub, rtpp_weakref_cb_t cb_func,
295+
rtpp_wrt_set_on_last(struct rtpp_weakref *pub, rtpp_weakref_cb_t cb_func,
296296
void *cb_func_arg)
297297
{
298298
struct rtpp_weakref_priv *pvt;

src/rtpp_weakref.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,34 @@ DEFINE_RAW_METHOD(rtpp_weakref_cb, void, void *);
3939

4040
DECLARE_CLASS(rtpp_weakref, void);
4141

42-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_reg, int,
42+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_reg, int,
4343
struct rtpp_refcnt *, uint64_t);
44-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_unreg, struct rtpp_refcnt *,
44+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_unreg, struct rtpp_refcnt *,
4545
uint64_t);
46-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_move, struct rtpp_refcnt *,
46+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_move, struct rtpp_refcnt *,
4747
uint64_t, struct rtpp_weakref *);
48-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_get_by_idx, void *,
48+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_get_by_idx, void *,
4949
uint64_t);
50-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_foreach, void,
50+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_foreach, void,
5151
rtpp_weakref_foreach_t, void *);
52-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_get_length, int);
53-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_purge, int);
54-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_set_on_first,
52+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_get_length, int);
53+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_purge, int);
54+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_set_on_first,
5555
rtpp_weakref_cb_t, rtpp_weakref_cb_t, void *);
56-
DECLARE_METHOD(rtpp_weakref, rtpp_wref_set_on_last,
56+
DECLARE_METHOD(rtpp_weakref, rtpp_wrt_set_on_last,
5757
rtpp_weakref_cb_t, rtpp_weakref_cb_t, void *);
5858

5959
DECLARE_SMETHODS(rtpp_weakref)
6060
{
61-
METHOD_ENTRY(rtpp_wref_reg, reg);
62-
METHOD_ENTRY(rtpp_wref_unreg, unreg);
63-
METHOD_ENTRY(rtpp_wref_move, move);
64-
METHOD_ENTRY(rtpp_wref_get_by_idx, get_by_idx);
65-
METHOD_ENTRY(rtpp_wref_foreach, foreach);
66-
METHOD_ENTRY(rtpp_wref_get_length, get_length);
67-
METHOD_ENTRY(rtpp_wref_purge, purge);
68-
METHOD_ENTRY(rtpp_wref_set_on_first, set_on_first);
69-
METHOD_ENTRY(rtpp_wref_set_on_last, set_on_last);
61+
METHOD_ENTRY(rtpp_wrt_reg, reg);
62+
METHOD_ENTRY(rtpp_wrt_unreg, unreg);
63+
METHOD_ENTRY(rtpp_wrt_move, move);
64+
METHOD_ENTRY(rtpp_wrt_get_by_idx, get_by_idx);
65+
METHOD_ENTRY(rtpp_wrt_foreach, foreach);
66+
METHOD_ENTRY(rtpp_wrt_get_length, get_length);
67+
METHOD_ENTRY(rtpp_wrt_purge, purge);
68+
METHOD_ENTRY(rtpp_wrt_set_on_first, set_on_first);
69+
METHOD_ENTRY(rtpp_wrt_set_on_last, set_on_last);
7070
};
7171

7272
DECLARE_CLASS_PUBTYPE(rtpp_weakref, {

0 commit comments

Comments
 (0)