3rdparty/portmidi: More cases of ignoring const in the macOS code.

This commit is contained in:
Vas Crabb 2025-04-20 10:11:26 +10:00
parent 485a93c011
commit 74085ae6ef
4 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@
plist files (user and system) open at once (due to a simple plist files (user and system) open at once (due to a simple
memory management scheme). 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 /* path -- the name of the preference we are searching for
input -- true iff this is an input device input -- true iff this is an input device
id -- current default device id id -- current default device id

View File

@ -3,4 +3,4 @@
PmError pm_macosxcm_init(void); PmError pm_macosxcm_init(void);
void pm_macosxcm_term(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);

View File

@ -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; dict_ptr dict;
if (v->tag != kTAG_DICTIONARY) return NULL; // not a dictionary 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 */ 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]; char key[MAX_KEY_SIZE];
while (*path) { /* more to the path */ while (*path) { /* more to the path */

View File

@ -79,8 +79,8 @@ void bplist_free_data(void);
/*************** functions for accessing values ****************/ /*************** functions for accessing values ****************/
char *value_get_asciistring(value_ptr v); 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);
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);
/*************** functions for debugging ***************/ /*************** functions for debugging ***************/