where is weston-content-protection-client-protocol.h?
Barry Song
21cnbao at gmail.com
Tue Oct 1 04:47:15 UTC 2019
Scott Anderson <scott.anderson at collabora.com> 于2019年10月1日周二 下午3:45写道:
>
> On 1/10/19 3:35 pm, Barry Song wrote:
> > Hi Ankit and all,
> > clients/content_protection.c includes
> > weston-content-protection-client-protocol.h, and i found commit
> > 8b40deaaaaf845c1b965c2888b1f036ef1f19d76 added
> > weston_content_protection_protocol_c and
> > weston_content_protection_client_protocol_h
> >
> > diff --git a/clients/meson.build b/clients/meson.build
> > index 3d36efe4..ff6246db 100644
> > --- a/clients/meson.build
> > +++ b/clients/meson.build
> > @@ -229,6 +229,14 @@ demo_clients = [
> > 'dep_objs': dep_vertex_clipping
> > },
> > { 'basename': 'confine' },
> > + {
> > + 'basename': 'content_protection',
> > + 'add_sources': [
> > + weston_content_protection_client_protocol_h,
> > + weston_content_protection_protocol_c,
> > + ]
> > + },
> > +
> > { 'basename': 'dnd' },
> > {
> > 'basename': 'editor',
> >
> > But anyway, where is the weston-content-protection-client-protocol.h?
> > I can't find it in weston:
> > weston$ find ./ -name "weston-content-protection-client-protocol.h"
> >
> > And i failed to find it in google.
> >
> > Thanks
> > Barry
>
> Hi Barry,
>
> With all Wayland extension protocols (and even the core protocol
> itself), they are all defined in an .xml file, and then the
> wayland-scanner tool generates the .c and .h code for it. So if you want
> to look at the header file directly, it'll be inside of your build
> directory (e.g.
> build/protocols/weston-content-protection-client-protocol.h).
>
> If you want to use this in your own projects, you should use
> wayland-scanner yourself rather than copying the .c and .h files.
Thank you very much, Scott.
>
> Cheers,
> Scott
-barry
More information about the wayland-devel
mailing list