Some demos use datafiles; let's allow these to easily work by adding a callback-interface for loading tracks. The callbacks are only present in player-mode, because tracks aren't loaded from disk in client-mode.
24 lines
398 B
C
24 lines
398 B
C
/* Copyright (C) 2007-2008 Erik Faye-Lund and Egbert Teeselink
|
|
* For conditions of distribution and use, see copyright notice in COPYING
|
|
*/
|
|
|
|
#ifndef SYNC_DEVICE_H
|
|
#define SYNC_DEVICE_H
|
|
|
|
#include "data.h"
|
|
#include "sync.h"
|
|
|
|
struct sync_device {
|
|
char *base;
|
|
struct sync_data data;
|
|
|
|
#ifndef SYNC_PLAYER
|
|
int row;
|
|
SOCKET sock;
|
|
#else
|
|
struct sync_io_cb io_cb;
|
|
#endif
|
|
};
|
|
|
|
#endif /* SYNC_DEVICE_H */
|