mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
- formatting code using astyle
Conflicts: libarmbox/dmx.cpp libgeneric-pc/video_lib.h libspark/dmx.cpp Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "init.h"
|
||||
#include <config.h>
|
||||
|
||||
typedef void (*cs_messenger) (unsigned int msg, unsigned int data);
|
||||
typedef void (*cs_messenger)(unsigned int msg, unsigned int data);
|
||||
|
||||
inline void cs_api_init()
|
||||
{
|
||||
@@ -19,8 +19,8 @@ inline void cs_api_exit()
|
||||
hal_api_exit();
|
||||
};
|
||||
|
||||
#define cs_malloc_uncached malloc
|
||||
#define cs_free_uncached free
|
||||
#define cs_malloc_uncached malloc
|
||||
#define cs_free_uncached free
|
||||
|
||||
// Callback function helpers
|
||||
#if HAVE_DUCKBOX_HARDWARE \
|
||||
@@ -32,13 +32,25 @@ inline void cs_api_exit()
|
||||
)
|
||||
void cs_register_messenger(cs_messenger messenger);
|
||||
#else
|
||||
static inline void cs_register_messenger(cs_messenger) { return; };
|
||||
static inline void cs_register_messenger(cs_messenger)
|
||||
{
|
||||
return;
|
||||
};
|
||||
#endif
|
||||
static inline void cs_deregister_messenger(void) { return; };
|
||||
static inline void cs_deregister_messenger(void)
|
||||
{
|
||||
return;
|
||||
};
|
||||
|
||||
/* compat... HD1 seems to be version 6. everything newer ist > 6... */
|
||||
static inline unsigned int cs_get_revision(void) { return 1; };
|
||||
static inline unsigned int cs_get_chip_type(void) { return 0; };
|
||||
static inline unsigned int cs_get_revision(void)
|
||||
{
|
||||
return 1;
|
||||
};
|
||||
static inline unsigned int cs_get_chip_type(void)
|
||||
{
|
||||
return 0;
|
||||
};
|
||||
extern int cnxt_debug;
|
||||
|
||||
#endif // __CS_API_H__
|
||||
|
Reference in New Issue
Block a user