Michael Stefaniuc : dmstyle: Move a struct definition to the .c file that uses it.

Alexandre Julliard julliard at winehq.org
Wed Jun 11 13:36:25 CDT 2014


Module: wine
Branch: master
Commit: e22458c224b6ff83c020888868b9fa25a9318bd8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e22458c224b6ff83c020888868b9fa25a9318bd8

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Jun  9 13:29:47 2014 +0200

dmstyle: Move a struct definition to the .c file that uses it.

---

 dlls/dmstyle/dmstyle_private.h |   20 --------------------
 dlls/dmstyle/style.c           |   11 +++++++++++
 2 files changed, 11 insertions(+), 20 deletions(-)

diff --git a/dlls/dmstyle/dmstyle_private.h b/dlls/dmstyle/dmstyle_private.h
index bae61a0..95ad92f 100644
--- a/dlls/dmstyle/dmstyle_private.h
+++ b/dlls/dmstyle/dmstyle_private.h
@@ -45,8 +45,6 @@
 /*****************************************************************************
  * Interfaces
  */
-typedef struct IDirectMusicStyle8Impl IDirectMusicStyle8Impl;
-
 typedef struct IDirectMusicAuditionTrack IDirectMusicAuditionTrack;
 typedef struct IDirectMusicChordTrack IDirectMusicChordTrack;
 typedef struct IDirectMusicCommandTrack IDirectMusicCommandTrack;
@@ -100,24 +98,6 @@ typedef struct _DMUS_PRIVATE_STYLE_ITEM {
 
 
 /*****************************************************************************
- * IDirectMusicStyle8Impl implementation structure
- */
-struct IDirectMusicStyle8Impl {
-  IDirectMusicStyle8 IDirectMusicStyle8_iface;
-  const IDirectMusicObjectVtbl *ObjectVtbl;
-  const IPersistStreamVtbl *PersistStreamVtbl;
-  LONG           ref;
-
-  /* IDirectMusicStyle8Impl fields */
-  LPDMUS_OBJECTDESC pDesc;
-  DMUS_IO_STYLE style;
-
-  /* data */
-  struct list Motifs;
-  struct list Bands;
-};
-
-/*****************************************************************************
  * IDirectMusicAuditionTrack implementation structure
  */
 struct IDirectMusicAuditionTrack {
diff --git a/dlls/dmstyle/style.c b/dlls/dmstyle/style.c
index 2945e5d..ed40791 100644
--- a/dlls/dmstyle/style.c
+++ b/dlls/dmstyle/style.c
@@ -26,6 +26,17 @@ WINE_DECLARE_DEBUG_CHANNEL(dmfile);
 /*****************************************************************************
  * IDirectMusicStyleImpl implementation
  */
+typedef struct IDirectMusicStyle8Impl {
+    IDirectMusicStyle8 IDirectMusicStyle8_iface;
+    const IDirectMusicObjectVtbl *ObjectVtbl;
+    const IPersistStreamVtbl *PersistStreamVtbl;
+    LONG ref;
+    DMUS_OBJECTDESC *pDesc;
+    DMUS_IO_STYLE style;
+    struct list Motifs;
+    struct list Bands;
+} IDirectMusicStyle8Impl;
+
 static inline IDirectMusicStyle8Impl *impl_from_IDirectMusicStyle8(IDirectMusicStyle8 *iface)
 {
     return CONTAINING_RECORD(iface, IDirectMusicStyle8Impl, IDirectMusicStyle8_iface);




More information about the wine-cvs mailing list