RetroArch
Macros | Functions
menu_cbs_title.c File Reference
#include <lists/string_list.h>
#include <string/stdstring.h>
#include <file/file_path.h>
#include <compat/strl.h>
#include "../../audio/audio_driver.h"
#include "../menu_driver.h"
#include "../menu_cbs.h"
Include dependency graph for menu_cbs_title.c:

Macros

#define BIND_ACTION_GET_TITLE(cbs, name)
 
#define default_title_macro(func_name, lbl)
 
#define default_fill_title_macro(func_name, lbl)
 
#define default_title_copy_macro(func_name, lbl)
 
#define default_title_generic_macro(func_name, lbl)
 

Functions

static void sanitize_to_string (char *s, const char *label, size_t len)
 
static int fill_title (char *s, const char *title, const char *path, size_t len)
 
static int action_get_title_action_generic (const char *path, const char *label, unsigned menu_type, char *s, size_t len)
 
static int action_get_title_dropdown_item (const char *path, const char *label, unsigned menu_type, char *s, size_t len)
 
static int action_get_title_mixer_stream_actions (const char *path, const char *label, unsigned menu_type, char *s, size_t len)
 
 default_title_macro (action_get_quick_menu_override_options, MENU_ENUM_LABEL_VALUE_QUICK_MENU_OVERRIDE_OPTIONS)
 
 default_title_generic_macro (action_get_title_deferred_database_manager_list, MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION)
 
static int action_get_title_group_settings (const char *path, const char *label, unsigned menu_type, char *s, size_t len)
 
static int action_get_title_input_binds_list (const char *path, const char *label, unsigned menu_type, char *s, size_t len)
 
static int menu_cbs_init_bind_title_compare_label (menu_file_list_cbs_t *cbs, const char *label, uint32_t label_hash)
 
static int menu_cbs_init_bind_title_compare_type (menu_file_list_cbs_t *cbs, unsigned type)
 
int menu_cbs_init_bind_title (menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx, uint32_t label_hash)
 

Macro Definition Documentation

◆ BIND_ACTION_GET_TITLE

#define BIND_ACTION_GET_TITLE (   cbs,
  name 
)
Value:
cbs->action_get_title = name; \
cbs->action_get_title_ident = #name;
GLuint const GLchar * name
Definition: glext.h:6671

◆ default_fill_title_macro

#define default_fill_title_macro (   func_name,
  lbl 
)
Value:
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
{ \
return fill_title(s, msg_hash_to_str(lbl), path, len); \
}
static int fill_title(char *s, const char *title, const char *path, size_t len)
Definition: menu_cbs_title.c:44
GLsizei const GLchar ** path
Definition: glext.h:7901
GLenum GLsizei len
Definition: glext.h:7389
GLdouble s
Definition: glext.h:6390
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
msg_hash_to_str(MSG_INPUT_ENABLE_SETTINGS_PASSWORD)

◆ default_title_copy_macro

#define default_title_copy_macro (   func_name,
  lbl 
)
Value:
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
{ \
strlcpy(s, msg_hash_to_str(lbl), len); \
return 0; \
}
GLsizei const GLchar ** path
Definition: glext.h:7901
GLenum GLsizei len
Definition: glext.h:7389
GLdouble s
Definition: glext.h:6390
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
msg_hash_to_str(MSG_INPUT_ENABLE_SETTINGS_PASSWORD)

◆ default_title_generic_macro

#define default_title_generic_macro (   func_name,
  lbl 
)
Value:
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
{ \
return action_get_title_generic(s, len, path, msg_hash_to_str(lbl)); \
} \
GLsizei const GLchar ** path
Definition: glext.h:7901
GLenum GLsizei len
Definition: glext.h:7389
GLdouble s
Definition: glext.h:6390
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
msg_hash_to_str(MSG_INPUT_ENABLE_SETTINGS_PASSWORD)

◆ default_title_macro

#define default_title_macro (   func_name,
  lbl 
)
Value:
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
{ \
const char *str = msg_hash_to_str(lbl); \
if (s && !string_is_empty(str)) \
sanitize_to_string(s, str, len); \
return 0; \
}
GLsizei const GLchar ** path
Definition: glext.h:7901
GLenum GLsizei len
Definition: glext.h:7389
GLdouble s
Definition: glext.h:6390
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
static RETRO_BEGIN_DECLS INLINE bool string_is_empty(const char *data)
Definition: stdstring.h:38
msg_hash_to_str(MSG_INPUT_ENABLE_SETTINGS_PASSWORD)
const char *const str
Definition: portlistingparse.c:18

Function Documentation

◆ action_get_title_action_generic()

static int action_get_title_action_generic ( const char *  path,
const char *  label,
unsigned  menu_type,
char *  s,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ action_get_title_dropdown_item()

static int action_get_title_dropdown_item ( const char *  path,
const char *  label,
unsigned  menu_type,
char *  s,
size_t  len 
)
static
Here is the caller graph for this function:

◆ action_get_title_group_settings()

static int action_get_title_group_settings ( const char *  path,
const char *  label,
unsigned  menu_type,
char *  s,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ action_get_title_input_binds_list()

static int action_get_title_input_binds_list ( const char *  path,
const char *  label,
unsigned  menu_type,
char *  s,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ action_get_title_mixer_stream_actions()

static int action_get_title_mixer_stream_actions ( const char *  path,
const char *  label,
unsigned  menu_type,
char *  s,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ default_title_generic_macro()

default_title_generic_macro ( action_get_title_deferred_database_manager_list  ,
MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION   
)
Here is the call graph for this function:

◆ default_title_macro()

default_title_macro ( action_get_quick_menu_override_options  ,
MENU_ENUM_LABEL_VALUE_QUICK_MENU_OVERRIDE_OPTIONS   
)
Here is the call graph for this function:

◆ fill_title()

static int fill_title ( char *  s,
const char *  title,
const char *  path,
size_t  len 
)
static
Here is the call graph for this function:

◆ menu_cbs_init_bind_title()

int menu_cbs_init_bind_title ( menu_file_list_cbs_t cbs,
const char *  path,
const char *  label,
unsigned  type,
size_t  idx,
uint32_t  label_hash 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_cbs_init_bind_title_compare_label()

static int menu_cbs_init_bind_title_compare_label ( menu_file_list_cbs_t cbs,
const char *  label,
uint32_t  label_hash 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_cbs_init_bind_title_compare_type()

static int menu_cbs_init_bind_title_compare_type ( menu_file_list_cbs_t cbs,
unsigned  type 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sanitize_to_string()

static void sanitize_to_string ( char *  s,
const char *  label,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: