jvmti_rs/wrapper/jvmtifns/
class_loader_search.rs1use jni::strings::JNIString;
2
3use crate::{
4 errors::*,
5 JVMTIEnv,
6};
7
8impl<'a> JVMTIEnv<'a> {
9 pub fn add_to_bootstrap_class_loader_search<S>(&self, segment: S) -> Result<()>
10 where
11 S: Into<JNIString> {
12 let seg = segment.into();
13 jvmti_call!(self.jvmti_raw(), AddToBootstrapClassLoaderSearch,
14 seg.as_ptr()
15 )
16 }
17
18 pub fn add_to_system_class_loader_search<S>(&self, segment: S) -> Result<()>
19 where
20 S: Into<JNIString> {
21 let seg = segment.into();
22 jvmti_call!(self.jvmti_raw(), AddToSystemClassLoaderSearch,
23 seg.as_ptr()
24 )
25 }
26}