mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-20 19:40:39 +00:00
Move comment to driver.c
This commit is contained in:
parent
e2e1471946
commit
a6c2e2981d
17
driver.c
17
driver.c
@ -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
|
||||
|
15
driver.h
15
driver.h
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user