qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: tomoki.sekiyama@hds.com
Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com,
	lcapitulino@redhat.com, vrozenfe@redhat.com,
	dle-discus@lists.sourceforge.jp,
	Tomoki Sekiyama <tomoki.sekiyama.qu@hitachi.com>
Subject: Re: [Qemu-devel] [RFC PATCH 04/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze
Date: Tue, 26 Mar 2013 08:09:29 +0100	[thread overview]
Message-ID: <515149A9.30101@redhat.com> (raw)
In-Reply-To: <1364244642.5150b8be08e6f@webmail.sdl.hitachi.co.jp>

Il 25/03/2013 21:50, Tomoki Sekiyama ha scritto:
> Hi,
> 
> Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Il 14/02/2013 07:10, Tomoki Sekiyama ha scritto:
>>> diff --git a/qga/vss-win32-provider/qga-provider.idl
>> b/qga/vss-win32-provider/qga-provider.idl
>>> new file mode 100644
>>> index 0000000..17abca0
>>> --- /dev/null
>>> +++ b/qga/vss-win32-provider/qga-provider.idl
>>> @@ -0,0 +1,20 @@
>>> +import "oaidl.idl";
>>> +import "ocidl.idl";
>>> +
>>> +[
>>> +    uuid(103B8142-6CE5-48A7-BDE1-794D3192FCF1),
>>> +    version(1.0),
>>> +    helpstring("QGAVSSProvider Type Library")
>>> +]
>>> +library QGAVSSHWProviderLib
>>> +{
>>> +    importlib("stdole2.tlb");
>>> +    [
>>> +        uuid(6E6A3492-8D4D-440C-9619-5E5D0CC31CA8),
>>> +        helpstring("QGAVSSProvider Class")
>>> +    ]
>>> +    coclass QGAVSSHWProvider
>>> +    {
>>> +        [default] interface IUnknown;
>>> +    };
>>> +};
>>
>> Ok, I checked widl and it chokes on the importlib line.  If that can be
>> removed, it's fine to use widl.
>>
>> The invocation is
>>
>> 	widl -m32/-m64 -o qga-provider.tlb -t qga-provider.idl
>>
>> where code to choose between -m32 and -m64 is already in the configure
>> script (search for `case "$cpu"`).
>>
>> Paolo
> 
> Unfortunately, if I remove importlib("stdole2.tlb"), generated .tlb seems
> rejected to register into Windows COM+ Catalog.
> 
> Wine has stdole2.tlb in its fakedlls directory, but widl does not accept
> this by
> 
>   error: Wrong or unsupported typelib magic 405a4d
> 
> Even if I copied native stdole2.tlb, widl fails with the same error.
> 
> Do you have any idea about this error?

No, I suggest you ask on the Wine mailing lists.  In the meanwhile we
can include a precompiled .tlb file in the QEMU repository and use midl.

Paolo

  reply	other threads:[~2013-03-26  7:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20130214061026.15062.54597.stgit@melchior2.sdl.hitachi.co.jp>
     [not found] ` <20130214061042.15062.91573.stgit@melchior2.sdl.hitachi.co.jp>
     [not found]   ` <511CE63D.6050405@redhat.com>
2013-03-25 20:50     ` [Qemu-devel] [RFC PATCH 04/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze Tomoki Sekiyama
2013-03-26  7:09       ` Paolo Bonzini [this message]
2013-03-26  8:44         ` Vadim Rozenfeld
2013-03-26 16:30           ` Tomoki Sekiyama
2013-03-27 11:29             ` Vadim Rozenfeld
2013-03-27 14:41               ` Tomoki Sekiyama

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=515149A9.30101@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=dle-discus@lists.sourceforge.jp \
    --cc=lcapitulino@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=tomoki.sekiyama.qu@hitachi.com \
    --cc=tomoki.sekiyama@hds.com \
    --cc=vrozenfe@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).