From eebd8e476193bc5cc7adf88eb5c3f3235d73dee5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 23 Jul 2014 18:21:08 -0600 Subject: NxPlayer: Misc changes to better integrate with NxWM::CMediaPlayer --- apps/include/nsh.h | 4 ++-- apps/include/nxplayer.h | 25 +++++++++++++++++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) (limited to 'apps/include') diff --git a/apps/include/nsh.h b/apps/include/nsh.h index e16c85924..1a25d08ed 100644 --- a/apps/include/nsh.h +++ b/apps/include/nsh.h @@ -97,7 +97,7 @@ extern "C" * Name: nsh_initialize * * Description: - * This nterfaces is used to initialize the NuttShell (NSH). + * This interface is used to initialize the NuttShell (NSH). * nsh_initialize() should be called one during application start-up prior * to executing either nsh_consolemain() or nsh_telnetstart(). * @@ -132,7 +132,7 @@ void nsh_initialize(void); * Returned Values: * This function does not normally return. exit() is usually called to * terminate the NSH session. This function will return in the event of - * an error. In that case, a nonzero value is returned (EXIT_FAILURE=1). + * an error. In that case, a non-zero value is returned (EXIT_FAILURE=1). * ****************************************************************************/ diff --git a/apps/include/nxplayer.h b/apps/include/nxplayer.h index 13f70c381..cd0517dcf 100644 --- a/apps/include/nxplayer.h +++ b/apps/include/nxplayer.h @@ -89,6 +89,18 @@ typedef int (*nxplayer_func)(FAR struct nxplayer_s* pPlayer, char* pargs); * Public Data ****************************************************************************/ +/**************************************************************************** + * Public Data + ****************************************************************************/ + +#ifdef __cplusplus +#define EXTERN extern "C" +extern "C" +{ +#else +#define EXTERN extern +#endif + /**************************************************************************** * Public Function Prototypes ****************************************************************************/ @@ -165,7 +177,7 @@ void nxplayer_reference(FAR struct nxplayer_s *pPlayer); * **************************************************************************/ -int nxplayer_setdevice(FAR struct nxplayer_s *pPlayer, char* device); +int nxplayer_setdevice(FAR struct nxplayer_s *pPlayer, FAR const char *device); /**************************************************************************** * Name: nxplayer_playfile @@ -188,8 +200,8 @@ int nxplayer_setdevice(FAR struct nxplayer_s *pPlayer, char* device); * **************************************************************************/ -int nxplayer_playfile(FAR struct nxplayer_s *pPlayer, char* filename, - int filefmt, int subfmt); +int nxplayer_playfile(FAR struct nxplayer_s *pPlayer, FAR char *filename, + int filefmt, int subfmt); /**************************************************************************** * Name: nxplayer_stop @@ -296,7 +308,7 @@ int nxplayer_setbalance(FAR struct nxplayer_s *pPlayer, uint16_t balance); * **************************************************************************/ -inline void nxplayer_setmediadir(FAR struct nxplayer_s *pPlayer, char* mediadir); +void nxplayer_setmediadir(FAR struct nxplayer_s *pPlayer, FAR char *mediadir); /**************************************************************************** * Name: nxplayer_setbass @@ -354,4 +366,9 @@ int nxplayer_settreble(FAR struct nxplayer_s *pPlayer, uint8_t treble); int nxplayer_systemreset(FAR struct nxplayer_s *pPlayer); #endif +#undef EXTERN +#ifdef __cplusplus +} +#endif + #endif /* __APPS_SYSTEM_NXPLAYER_NXPLAYER_H */ -- cgit v1.2.3