mirror of
https://github.com/holub/mame
synced 2025-05-20 12:48:53 +03:00
3rdparty/portmidi: More cases of ignoring const in the macOS code.
This commit is contained in:
parent
485a93c011
commit
74085ae6ef
2
3rdparty/portmidi/pm_mac/finddefault.c
vendored
2
3rdparty/portmidi/pm_mac/finddefault.c
vendored
@ -17,7 +17,7 @@
|
||||
plist files (user and system) open at once (due to a simple
|
||||
memory management scheme).
|
||||
*/
|
||||
PmDeviceID find_default_device(char *path, int input, PmDeviceID id)
|
||||
PmDeviceID find_default_device(const char *path, int input, PmDeviceID id)
|
||||
/* path -- the name of the preference we are searching for
|
||||
input -- true iff this is an input device
|
||||
id -- current default device id
|
||||
|
2
3rdparty/portmidi/pm_mac/pmmacosxcm.h
vendored
2
3rdparty/portmidi/pm_mac/pmmacosxcm.h
vendored
@ -3,4 +3,4 @@
|
||||
PmError pm_macosxcm_init(void);
|
||||
void pm_macosxcm_term(void);
|
||||
|
||||
PmDeviceID find_default_device(char *path, int input, PmDeviceID id);
|
||||
PmDeviceID find_default_device(const char *path, int input, PmDeviceID id);
|
||||
|
4
3rdparty/portmidi/pm_mac/readbinaryplist.c
vendored
4
3rdparty/portmidi/pm_mac/readbinaryplist.c
vendored
@ -1012,7 +1012,7 @@ char *value_get_asciistring(value_ptr v)
|
||||
}
|
||||
|
||||
|
||||
value_ptr value_dict_lookup_using_string(value_ptr v, char *key)
|
||||
value_ptr value_dict_lookup_using_string(value_ptr v, const char *key)
|
||||
{
|
||||
dict_ptr dict;
|
||||
if (v->tag != kTAG_DICTIONARY) return NULL; // not a dictionary
|
||||
@ -1028,7 +1028,7 @@ value_ptr value_dict_lookup_using_string(value_ptr v, char *key)
|
||||
return NULL; /* not found */
|
||||
}
|
||||
|
||||
value_ptr value_dict_lookup_using_path(value_ptr v, char *path)
|
||||
value_ptr value_dict_lookup_using_path(value_ptr v, const char *path)
|
||||
{
|
||||
char key[MAX_KEY_SIZE];
|
||||
while (*path) { /* more to the path */
|
||||
|
4
3rdparty/portmidi/pm_mac/readbinaryplist.h
vendored
4
3rdparty/portmidi/pm_mac/readbinaryplist.h
vendored
@ -79,8 +79,8 @@ void bplist_free_data(void);
|
||||
/*************** functions for accessing values ****************/
|
||||
|
||||
char *value_get_asciistring(value_ptr v);
|
||||
value_ptr value_dict_lookup_using_string(value_ptr v, char *key);
|
||||
value_ptr value_dict_lookup_using_path(value_ptr v, char *path);
|
||||
value_ptr value_dict_lookup_using_string(value_ptr v, const char *key);
|
||||
value_ptr value_dict_lookup_using_path(value_ptr v, const char *path);
|
||||
|
||||
/*************** functions for debugging ***************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user