summaryrefslogtreecommitdiffstats
path: root/tests/libsample/samplenamespace.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-23 21:18:29 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-23 22:39:54 -0200
commit982db27e691d4df0276b7e9fbfa471f53c8647a3 (patch)
tree2be4f01884dad561e171192445be88b60da031ab /tests/libsample/samplenamespace.h
parentfc9458dc83858ad76a5d589c3cd787ef5a1d5d16 (diff)
downloadshiboken-982db27e691d4df0276b7e9fbfa471f53c8647a3.tar.gz
shiboken-982db27e691d4df0276b7e9fbfa471f53c8647a3.tar.xz
shiboken-982db27e691d4df0276b7e9fbfa471f53c8647a3.zip
Added visibility rules to libsample.
Diffstat (limited to 'tests/libsample/samplenamespace.h')
-rw-r--r--tests/libsample/samplenamespace.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/libsample/samplenamespace.h b/tests/libsample/samplenamespace.h
index 420b7a77..5d58ac27 100644
--- a/tests/libsample/samplenamespace.h
+++ b/tests/libsample/samplenamespace.h
@@ -35,32 +35,34 @@
#ifndef SAMPLENAMESPACE_H
#define SAMPLENAMESPACE_H
+#include "libsamplemacros.h"
+
namespace SampleNamespace
{
-enum Option {
+enum LIBSAMPLE_API Option {
None,
RandomNumber,
UnixTime
};
-enum InValue {
+enum LIBSAMPLE_API InValue {
ZeroIn,
OneIn,
TwoIn
};
-enum OutValue {
+enum LIBSAMPLE_API OutValue {
ZeroOut,
OneOut,
TwoOut
};
-OutValue enumInEnumOut(InValue in);
+LIBSAMPLE_API OutValue enumInEnumOut(InValue in);
-int getNumber(Option opt);
+LIBSAMPLE_API int getNumber(Option opt);
-inline double powerOfTwo(double num) {
+LIBSAMPLE_API inline double powerOfTwo(double num) {
return num * num;
}