where is weston-content-protection-client-protocol.h?

Submitted by Barry Song on Oct. 1, 2019, 2:35 a.m.

Details

Message ID CAGsJ_4wfTwMAnE0FohBwrdg6LAkStQvquh5EfRYaC4b39cfE0Q@mail.gmail.com
State Not Applicable
Headers show
Series "where is weston-content-protection-client-protocol.h?" ( rev: 1 ) in Wayland

Not browsing as part of any series.

Commit Message

Barry Song Oct. 1, 2019, 2:35 a.m.
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


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

Patch hide | download patch | download mbox

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',

Comments

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.

Cheers,
Scott
Scott Anderson <scott.anderson@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