Signed-off-by: falkTX <falktx@falktx.com>tags/v2.1-rc1
| @@ -1095,7 +1095,7 @@ CARLA_EXPORT const char* carla_get_library_folder(); | |||||
| * Must be called as early as possible in the program's lifecycle. | * Must be called as early as possible in the program's lifecycle. | ||||
| * Returns true if NSM is available and initialized correctly. | * Returns true if NSM is available and initialized correctly. | ||||
| */ | */ | ||||
| CARLA_EXPORT bool carla_nsm_init(int pid, const char* executableName); | |||||
| CARLA_EXPORT bool carla_nsm_init(uint64_t pid, const char* executableName); | |||||
| /*! | /*! | ||||
| * Respond to an NSM callback. | * Respond to an NSM callback. | ||||
| @@ -88,7 +88,7 @@ public: | |||||
| } | } | ||||
| } | } | ||||
| bool announce(const int pid, const char* const executableName) | |||||
| bool announce(const uint64_t pid, const char* const executableName) | |||||
| { | { | ||||
| CARLA_SAFE_ASSERT_RETURN(pid != 0, false); | CARLA_SAFE_ASSERT_RETURN(pid != 0, false); | ||||
| CARLA_SAFE_ASSERT_RETURN(executableName != nullptr && executableName[0] != '\0', false); | CARLA_SAFE_ASSERT_RETURN(executableName != nullptr && executableName[0] != '\0', false); | ||||
| @@ -635,7 +635,7 @@ private: | |||||
| // ------------------------------------------------------------------------------------------------------------------- | // ------------------------------------------------------------------------------------------------------------------- | ||||
| bool carla_nsm_init(int pid, const char* executableName) | |||||
| bool carla_nsm_init(uint64_t pid, const char* executableName) | |||||
| { | { | ||||
| #ifdef HAVE_LIBLO | #ifdef HAVE_LIBLO | ||||
| return CarlaNSM::getInstance().announce(pid, executableName); | return CarlaNSM::getInstance().announce(pid, executableName); | ||||
| @@ -2839,7 +2839,7 @@ class CarlaHostDLL(CarlaHostMeta): | |||||
| self.lib.carla_get_host_osc_url_udp.argtypes = None | self.lib.carla_get_host_osc_url_udp.argtypes = None | ||||
| self.lib.carla_get_host_osc_url_udp.restype = c_char_p | self.lib.carla_get_host_osc_url_udp.restype = c_char_p | ||||
| self.lib.carla_nsm_init.argtypes = [c_int, c_char_p] | |||||
| self.lib.carla_nsm_init.argtypes = [c_uint64, c_char_p] | |||||
| self.lib.carla_nsm_init.restype = c_bool | self.lib.carla_nsm_init.restype = c_bool | ||||
| self.lib.carla_nsm_ready.argtypes = [c_int] | self.lib.carla_nsm_ready.argtypes = [c_int] | ||||