Skip to content

Commit

Permalink
Change: VoicevoxCoreInfo -> GlobalInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Nov 6, 2023
1 parent 46fc3bc commit 7265ccf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import jakarta.annotation.Nonnull;

/** VOICEVOX CORE自体の情報。 */
public class VoicevoxCoreInfo extends Dll {
public class GlobalInfo extends Dll {
/**
* ライブラリのバージョン。
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* VoicevoxCoreInfoのテスト
* GlobalInfoのテスト
*/
package jp.hiroshiba.voicevoxcore;

Expand All @@ -11,12 +11,12 @@
class InfoTest {
@Test
void checkVersion() {
assertNotNull(VoicevoxCoreInfo.getVersion());
assertNotNull(GlobalInfo.getVersion());
}

@Test
void checkSupportedDevices() {
VoicevoxCoreInfo.SupportedDevices supportedDevices = VoicevoxCoreInfo.getSupportedDevices();
GlobalInfo.SupportedDevices supportedDevices = GlobalInfo.getSupportedDevices();

assertNotNull(supportedDevices);
assertTrue(supportedDevices.cpu);
Expand Down
4 changes: 2 additions & 2 deletions crates/voicevox_core_java_api/src/info.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::common::throw_if_err;
use jni::{sys::jobject, JNIEnv};
#[no_mangle]
extern "system" fn Java_jp_hiroshiba_voicevoxcore_VoicevoxCoreInfo_rsGetVersion(
extern "system" fn Java_jp_hiroshiba_voicevoxcore_GlobalInfo_rsGetVersion(
env: JNIEnv<'_>,
) -> jobject {
throw_if_err(env, std::ptr::null_mut(), |env| {
Expand All @@ -10,7 +10,7 @@ extern "system" fn Java_jp_hiroshiba_voicevoxcore_VoicevoxCoreInfo_rsGetVersion(
})
}
#[no_mangle]
extern "system" fn Java_jp_hiroshiba_voicevoxcore_VoicevoxCoreInfo_rsGetSupportedDevicesJson(
extern "system" fn Java_jp_hiroshiba_voicevoxcore_GlobalInfo_rsGetSupportedDevicesJson(
env: JNIEnv<'_>,
) -> jobject {
throw_if_err(env, std::ptr::null_mut(), |env| {
Expand Down

0 comments on commit 7265ccf

Please sign in to comment.