diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-04-04 12:37:19 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-04-04 12:37:19 +0800 |
commit | 7fe1ec2fc855172059829437a6380029fa8b5d14 (patch) | |
tree | 06b856f80b98a8d273f45d85a6e6716973ef7dc2 /gio | |
parent | b2713109348711e1ddb87be33c08d55b7dc8aada (diff) | |
download | glibmm-7fe1ec2fc855172059829437a6380029fa8b5d14.tar.gz |
gio/src/*.hg: Mark all _WRAP_ENUM() with decl_prefix
As per Kjell's suggestions, make things more future-proof by marking all
_WRAP_ENUM()'s with 'decl_prefix GIOMM_API'.
Diffstat (limited to 'gio')
-rw-r--r-- | gio/src/appinfo.hg | 2 | ||||
-rw-r--r-- | gio/src/credentials.hg | 2 | ||||
-rw-r--r-- | gio/src/dbusconnection.hg | 8 | ||||
-rw-r--r-- | gio/src/dbusintrospection.hg | 2 | ||||
-rw-r--r-- | gio/src/dbusmessage.hg | 8 | ||||
-rw-r--r-- | gio/src/dbuswatchname.hg | 2 | ||||
-rw-r--r-- | gio/src/emblem.hg | 2 | ||||
-rw-r--r-- | gio/src/file.hg | 10 | ||||
-rw-r--r-- | gio/src/fileinfo.hg | 2 | ||||
-rw-r--r-- | gio/src/filemonitor.hg | 2 | ||||
-rw-r--r-- | gio/src/iostream.hg | 2 | ||||
-rw-r--r-- | gio/src/mount.hg | 4 | ||||
-rw-r--r-- | gio/src/mountoperation.hg | 4 | ||||
-rw-r--r-- | gio/src/outputstream.hg | 2 |
14 files changed, 26 insertions, 26 deletions
diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg index 32e90303..ed7a6dc0 100644 --- a/gio/src/appinfo.hg +++ b/gio/src/appinfo.hg @@ -54,7 +54,7 @@ class GIOMM_API AppInfo : public Glib::Interface _CLASS_INTERFACE(AppInfo, GAppInfo, G_APP_INFO, GAppInfoIface, , , GIOMM_API) public: - _WRAP_ENUM(CreateFlags, GAppInfoCreateFlags, NO_GTYPE) + _WRAP_ENUM(CreateFlags, GAppInfoCreateFlags, NO_GTYPE, decl_prefix GIOMM_API) static Glib::RefPtr<AppInfo> create_from_commandline(const std::string& commandline, const std::string& application_name, diff --git a/gio/src/credentials.hg b/gio/src/credentials.hg index 8c0cf966..2d81b2ad 100644 --- a/gio/src/credentials.hg +++ b/gio/src/credentials.hg @@ -56,7 +56,7 @@ protected: _IGNORE(g_credentials_new) public: - _WRAP_ENUM(Type, GCredentialsType, NO_GTYPE) + _WRAP_ENUM(Type, GCredentialsType, NO_GTYPE, decl_prefix GIOMM_API) _WRAP_CREATE() diff --git a/gio/src/dbusconnection.hg b/gio/src/dbusconnection.hg index e93f6988..44b67731 100644 --- a/gio/src/dbusconnection.hg +++ b/gio/src/dbusconnection.hg @@ -42,11 +42,11 @@ namespace DBus { _WRAP_ENUM(BusType, GBusType, decl_prefix GIOMM_API) -_WRAP_ENUM(CallFlags, GDBusCallFlags, NO_GTYPE) +_WRAP_ENUM(CallFlags, GDBusCallFlags, NO_GTYPE, decl_prefix GIOMM_API) _WRAP_ENUM(ConnectionFlags, GDBusConnectionFlags, gtype_func g_dbus_connection_flags_get_type, decl_prefix GIOMM_API) -_WRAP_ENUM(SendMessageFlags, GDBusSendMessageFlags, NO_GTYPE) -_WRAP_ENUM(SignalFlags, GDBusSignalFlags, NO_GTYPE) -_WRAP_ENUM(SubtreeFlags, GDBusSubtreeFlags, NO_GTYPE) +_WRAP_ENUM(SendMessageFlags, GDBusSendMessageFlags, NO_GTYPE, decl_prefix GIOMM_API) +_WRAP_ENUM(SignalFlags, GDBusSignalFlags, NO_GTYPE, decl_prefix GIOMM_API) +_WRAP_ENUM(SubtreeFlags, GDBusSubtreeFlags, NO_GTYPE, decl_prefix GIOMM_API) _GMMPROC_EXTRA_NAMESPACE(DBus) diff --git a/gio/src/dbusintrospection.hg b/gio/src/dbusintrospection.hg index bd6a79d8..06ab7b7f 100644 --- a/gio/src/dbusintrospection.hg +++ b/gio/src/dbusintrospection.hg @@ -30,7 +30,7 @@ namespace Gio namespace DBus { -_WRAP_ENUM(PropertyInfoFlags, GDBusPropertyInfoFlags, NO_GTYPE) +_WRAP_ENUM(PropertyInfoFlags, GDBusPropertyInfoFlags, NO_GTYPE, decl_prefix GIOMM_API) /** Stores information about an annotation. * diff --git a/gio/src/dbusmessage.hg b/gio/src/dbusmessage.hg index c03f5181..309a2a83 100644 --- a/gio/src/dbusmessage.hg +++ b/gio/src/dbusmessage.hg @@ -33,9 +33,9 @@ namespace Gio namespace DBus { -_WRAP_ENUM(MessageType, GDBusMessageType, NO_GTYPE) -_WRAP_ENUM(MessageFlags, GDBusMessageFlags, NO_GTYPE) -_WRAP_ENUM(MessageHeaderField, GDBusMessageHeaderField, NO_GTYPE) +_WRAP_ENUM(MessageType, GDBusMessageType, NO_GTYPE, decl_prefix GIOMM_API) +_WRAP_ENUM(MessageFlags, GDBusMessageFlags, NO_GTYPE, decl_prefix GIOMM_API) +_WRAP_ENUM(MessageHeaderField, GDBusMessageHeaderField, NO_GTYPE, decl_prefix GIOMM_API) _WRAP_ENUM(CapabilityFlags, GDBusCapabilityFlags, gtype_func g_dbus_capability_flags_get_type, decl_prefix GIOMM_API) _GMMPROC_EXTRA_NAMESPACE(DBus) @@ -90,7 +90,7 @@ public: _WRAP_METHOD(void set_message_type(MessageType type), g_dbus_message_set_message_type) // BIG_ENDIAN and LITTLE_ENDIAN are defined as preprocessor macros somewhere. - _WRAP_ENUM(ByteOrder, GDBusMessageByteOrder, NO_GTYPE, s#ENDIAN$#ENDIAN_ORDER#) + _WRAP_ENUM(ByteOrder, GDBusMessageByteOrder, NO_GTYPE, s#ENDIAN$#ENDIAN_ORDER#, decl_prefix GIOMM_API) _WRAP_METHOD(ByteOrder get_byte_order() const, g_dbus_message_get_byte_order) _WRAP_METHOD(void set_byte_order(ByteOrder byte_order), g_dbus_message_set_byte_order) diff --git a/gio/src/dbuswatchname.hg b/gio/src/dbuswatchname.hg index 27b6af20..1af00d76 100644 --- a/gio/src/dbuswatchname.hg +++ b/gio/src/dbuswatchname.hg @@ -24,7 +24,7 @@ namespace Gio namespace DBus { -_WRAP_ENUM(BusNameWatcherFlags, GBusNameWatcherFlags, NO_GTYPE) +_WRAP_ENUM(BusNameWatcherFlags, GBusNameWatcherFlags, NO_GTYPE, decl_prefix GIOMM_API) /** For example, * void on_name_appeared(const Glib::RefPtr<Gio::DBus::Connection>& connection, diff --git a/gio/src/emblem.hg b/gio/src/emblem.hg index 7a70b9fa..e8e8cfb4 100644 --- a/gio/src/emblem.hg +++ b/gio/src/emblem.hg @@ -42,7 +42,7 @@ class GIOMM_API Emblem _IMPLEMENTS_INTERFACE(Icon) public: - _WRAP_ENUM(Origin, GEmblemOrigin, NO_GTYPE) + _WRAP_ENUM(Origin, GEmblemOrigin, NO_GTYPE, decl_prefix GIOMM_API) protected: /** Creates a new emblem for @a icon. diff --git a/gio/src/file.hg b/gio/src/file.hg index 86d888d1..7347465b 100644 --- a/gio/src/file.hg +++ b/gio/src/file.hg @@ -43,8 +43,8 @@ namespace Gio class GIOMM_API Mount; class GIOMM_API Volume; -_WRAP_ENUM(FileQueryInfoFlags, GFileQueryInfoFlags, NO_GTYPE) -_WRAP_ENUM(FileMonitorFlags, GFileMonitorFlags, NO_GTYPE) +_WRAP_ENUM(FileQueryInfoFlags, GFileQueryInfoFlags, NO_GTYPE, decl_prefix GIOMM_API) +_WRAP_ENUM(FileMonitorFlags, GFileMonitorFlags, NO_GTYPE, decl_prefix GIOMM_API) /** File and directory handling. @@ -76,9 +76,9 @@ class File : public Glib::Interface _CLASS_INTERFACE(File, GFile, G_FILE, GFileIface, , , GIOMM_API) public: - _WRAP_ENUM(CreateFlags, GFileCreateFlags, NO_GTYPE) - _WRAP_ENUM(CopyFlags, GFileCopyFlags, NO_GTYPE) - _WRAP_ENUM(MeasureFlags, GFileMeasureFlags, NO_GTYPE) + _WRAP_ENUM(CreateFlags, GFileCreateFlags, NO_GTYPE, decl_prefix GIOMM_API) + _WRAP_ENUM(CopyFlags, GFileCopyFlags, NO_GTYPE, decl_prefix GIOMM_API) + _WRAP_ENUM(MeasureFlags, GFileMeasureFlags, NO_GTYPE, decl_prefix GIOMM_API) _IGNORE(g_file_icon_new) //g_file_icon_new is not a GFile method. diff --git a/gio/src/fileinfo.hg b/gio/src/fileinfo.hg index c19ef2ad..043b37bb 100644 --- a/gio/src/fileinfo.hg +++ b/gio/src/fileinfo.hg @@ -24,7 +24,7 @@ _PINCLUDE(glibmm/private/object_p.h) namespace Gio { -_WRAP_ENUM(FileType, GFileType, NO_GTYPE) +_WRAP_ENUM(FileType, GFileType, NO_GTYPE, decl_prefix GIOMM_API) //TODO: attribute strings diff --git a/gio/src/filemonitor.hg b/gio/src/filemonitor.hg index fb4dafd6..9d0fa891 100644 --- a/gio/src/filemonitor.hg +++ b/gio/src/filemonitor.hg @@ -45,7 +45,7 @@ protected: public: - _WRAP_ENUM(Event, GFileMonitorEvent, NO_GTYPE) + _WRAP_ENUM(Event, GFileMonitorEvent, NO_GTYPE, decl_prefix GIOMM_API) _WRAP_METHOD(bool cancel(), g_file_monitor_cancel) _WRAP_METHOD(bool is_cancelled() const, g_file_monitor_is_cancelled) diff --git a/gio/src/iostream.hg b/gio/src/iostream.hg index b1022162..097fa8df 100644 --- a/gio/src/iostream.hg +++ b/gio/src/iostream.hg @@ -62,7 +62,7 @@ class GIOMM_API IOStream : public Glib::Object public: - _WRAP_ENUM(SpliceFlags, GIOStreamSpliceFlags, NO_GTYPE) + _WRAP_ENUM(SpliceFlags, GIOStreamSpliceFlags, NO_GTYPE, decl_prefix GIOMM_API) /** Asyncronously splice the output stream to the input stream of @a * stream2, and splice the output stream of @a stream2 to the input stream of diff --git a/gio/src/mount.hg b/gio/src/mount.hg index 0b834f4a..dceaf998 100644 --- a/gio/src/mount.hg +++ b/gio/src/mount.hg @@ -56,8 +56,8 @@ class GIOMM_API Mount : public Glib::Interface _CLASS_INTERFACE(Mount, GMount, G_MOUNT, GMountIface, , , GIOMM_API) public: - _WRAP_ENUM(UnmountFlags, GMountUnmountFlags, NO_GTYPE) - _WRAP_ENUM(MountFlags, GMountMountFlags, NO_GTYPE) + _WRAP_ENUM(UnmountFlags, GMountUnmountFlags, NO_GTYPE, decl_prefix GIOMM_API) + _WRAP_ENUM(MountFlags, GMountMountFlags, NO_GTYPE, decl_prefix GIOMM_API) _WRAP_METHOD(Glib::RefPtr<File> get_root(), g_mount_get_root, refreturn) _WRAP_METHOD(Glib::RefPtr<const File> get_root() const, g_mount_get_root, refreturn, constversion) diff --git a/gio/src/mountoperation.hg b/gio/src/mountoperation.hg index 9181de57..a39db8fb 100644 --- a/gio/src/mountoperation.hg +++ b/gio/src/mountoperation.hg @@ -25,9 +25,9 @@ _PINCLUDE(gio/gio.h) namespace Gio { -_WRAP_ENUM(AskPasswordFlags, GAskPasswordFlags, NO_GTYPE) +_WRAP_ENUM(AskPasswordFlags, GAskPasswordFlags, NO_GTYPE, decl_prefix GIOMM_API) _WRAP_ENUM(PasswordSave, GPasswordSave, decl_prefix GIOMM_API) -_WRAP_ENUM(MountOperationResult, GMountOperationResult, NO_GTYPE) +_WRAP_ENUM(MountOperationResult, GMountOperationResult, NO_GTYPE, decl_prefix GIOMM_API) /** Authentication methods for mountable locations. * diff --git a/gio/src/outputstream.hg b/gio/src/outputstream.hg index 22df6cc2..c4e4869d 100644 --- a/gio/src/outputstream.hg +++ b/gio/src/outputstream.hg @@ -41,7 +41,7 @@ protected: _CTOR_DEFAULT public: - _WRAP_ENUM(SpliceFlags, GOutputStreamSpliceFlags, NO_GTYPE) + _WRAP_ENUM(SpliceFlags, GOutputStreamSpliceFlags, NO_GTYPE, decl_prefix GIOMM_API) _WRAP_METHOD(gssize write(const void* buffer, gsize count, const Glib::RefPtr<Cancellable>& cancellable{?}), g_output_stream_write, |