player: return const-pointer from sync_get_track()
There's no uses of sync_get_track() that can't do without a pointer to a const object any more. Making sync_track const helps us 64k-proof the code.
This commit is contained in:
parent
47d8e9de6c
commit
12595c74f5
@ -89,8 +89,8 @@ int main(int argc, char *argv[])
|
||||
0, TRUE, 1, D3DFMT_D24S8, 0, 0
|
||||
};
|
||||
|
||||
struct sync_track *clear_r, *clear_g, *clear_b;
|
||||
struct sync_track *cam_rot, *cam_dist;
|
||||
const struct sync_track *clear_r, *clear_g, *clear_b;
|
||||
const struct sync_track *cam_rot, *cam_dist;
|
||||
|
||||
/* initialize directx */
|
||||
d3d = Direct3DCreate9(D3D_SDK_VERSION);
|
||||
|
||||
@ -299,7 +299,8 @@ sockerr:
|
||||
|
||||
#endif
|
||||
|
||||
struct sync_track *sync_get_track(struct sync_device *d, const char *name)
|
||||
const struct sync_track *sync_get_track(struct sync_device *d,
|
||||
const char *name)
|
||||
{
|
||||
struct sync_track *t;
|
||||
int idx = sync_find_track(&d->data, name);
|
||||
|
||||
@ -25,7 +25,7 @@ void sync_set_callbacks(struct sync_device *, struct sync_cb *, void *);
|
||||
#endif /* !defined(SYNC_PLAYER) */
|
||||
|
||||
void sync_update(struct sync_device *, double);
|
||||
struct sync_track *sync_get_track(struct sync_device *, const char *);
|
||||
const struct sync_track *sync_get_track(struct sync_device *, const char *);
|
||||
float sync_get_val(const struct sync_track *, double);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user