1 // Compile with: 2 // g++ -fPIC -g -Wall -shared -o libtest0-fn-changed-libapp-v0.so test0-fn-changed-libapp-v0.cc 3 // 4 5 #include "test0-fn-changed-libapp.h" 6 7 namespace libapp 8 { 9 10 struct S0 11 { 12 int m0; 13 S0libapp::S014 S0() 15 : m0() 16 {} 17 }; 18 19 struct S1 20 { 21 int m0; 22 S1libapp::S123 S1() 24 : m0() 25 {} 26 }; 27 28 struct S2 29 { 30 int m0; 31 S2libapp::S232 S2() 33 : m0() 34 {} 35 }; 36 37 struct S3 38 { 39 int m0; 40 S3libapp::S341 S3() 42 : m0() 43 {} 44 }; 45 46 S0* create_s0()47create_s0() 48 {return new S0;} 49 50 void destroy(S0 * s)51destroy(S0* s) 52 {delete s;} 53 54 S1* create_s1()55create_s1() 56 {return new S1;} 57 58 void destroy(S1 * s)59destroy(S1* s) 60 {delete s;} 61 62 int fun0(S0 &)63fun0(S0&) 64 {return 0;} 65 66 void fun1(S1 *)67fun1(S1*) 68 { 69 } 70 71 void fun2(S2 *)72fun2(S2*) 73 { 74 } 75 76 void fun3(S3 *)77fun3(S3*) 78 { 79 } 80 81 } // end namespace libapp 82