Home | History | Annotate | Download | only in jni
      1 #ifndef LIBTEST1_H
      2 #define LIBTEST1_H
      3 
      4 #ifdef __cplusplus
      5 extern "C" {
      6 #endif
      7 
      8 /* define in libtest1, will be called dynamically through dlsym()
      9  * by main.c. This function receives the address of an integer
     10  * and sets its value to 1.
     11  *
     12  * when the library is unloaded, the value is set to 2 automatically
     13  * by the destructor there.
     14  */
     15 extern void test1_set(int *px);
     16 
     17 #ifdef __cplusplus
     18 }
     19 #endif
     20 
     21 #endif /* LIBTEST1_H */
     22