1 // Compile with: 2 // g++ -fPIC -g -Wall -shared -o libtest0-fn-changed-libapp-v1.so test0-fn-changed-libapp-v1.cc 3 // 4 5 #include "test0-fn-changed-libapp.h" 6 7 namespace libapp 8 { 9 10 struct S0 11 { 12 int m0; 13 char m1; 14 S0libapp::S015 S0() 16 : m0(), 17 m1() 18 {} 19 }; 20 21 struct S1 22 { 23 int m0; 24 char m1; 25 unsigned m2; 26 S1libapp::S127 S1() 28 : m0(), 29 m1(), 30 m2() 31 {} 32 }; 33 34 struct S2 35 { 36 int m0; 37 unsigned m1; 38 S2libapp::S239 S2() 40 : m0(), 41 m1() 42 {} 43 }; 44 45 struct S3 46 { 47 int m0; 48 unsigned char m1; 49 S3libapp::S350 S3() 51 : m0(), 52 m1() 53 {} 54 }; 55 56 int fun0(S0 &)57fun0(S0&) 58 {return 0;} 59 60 S0* create_s0()61create_s0() 62 {return new S0;} 63 64 void destroy(S0 * s)65destroy(S0* s) 66 {delete s;} 67 68 S1* create_s1()69create_s1() 70 {return new S1;} 71 72 void destroy(S1 * s)73destroy(S1* s) 74 {delete s;} 75 76 void fun1(S1 *)77fun1(S1*) 78 { 79 } 80 81 /* 82 void 83 fun2(S2*) 84 { 85 } 86 87 void 88 fun3(S3*) 89 { 90 } 91 */ 92 93 } // end namespace libapp 94