1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Move comment to driver.c

This commit is contained in:
twinaphex 2016-02-11 02:29:49 +01:00
parent e2e1471946
commit a6c2e2981d
2 changed files with 17 additions and 15 deletions

View File

@ -381,8 +381,25 @@ static void init_drivers(int flags)
* @flags : Bitmask of drivers to deinitialize.
*
* Deinitializes drivers.
*
*
* @flags determines which drivers get deinitialized.
**/
/**
* Driver ownership - set this to true if the platform in question needs to 'own'
* the respective handle and therefore skip regular RetroArch
* driver teardown/reiniting procedure.
*
* If to true, the 'free' function will get skipped. It is
* then up to the driver implementation to properly handle
* 'reiniting' inside the 'init' function and make sure it
* returns the existing handle instead of allocating and
* returning a pointer to a new handle.
*
* Typically, if a driver intends to make use of this, it should
* set this to true at the end of its 'init' function.
**/
static void uninit_drivers(int flags)
{
#ifdef HAVE_MENU

View File

@ -221,21 +221,6 @@ typedef struct driver_ctx_info
ssize_t len;
} driver_ctx_info_t;
/* TODO/FIXME - comment needs to be moved to each respective driver */
/* Set this to true if the platform in question needs to 'own'
* the respective handle and therefore skip regular RetroArch
* driver teardown/reiniting procedure.
*
* If set to true, the 'free' function will get skipped. It is
* then up to the driver implementation to properly handle
* 'reiniting' inside the 'init' function and make sure it
* returns the existing handle instead of allocating and
* returning a pointer to a new handle.
*
* Typically, if a driver intends to make use of this, it should
* set this to true at the end of its 'init' function. */
bool driver_ctl(enum driver_ctl_state state, void *data);
#ifdef __cplusplus