[okl4-developer] magpie _serverdecls.h

Jorge Torres jorge.torres.maldonado at gmail.com
Fri Oct 12 05:25:31 EST 2007


Hi  Jeffrey,


> iguana_haha = ig_env.Package("iguana/haha",
> >                  idl_server_headers = naming_headers,
> >                  idl_server_src = naming_servers)
> > apps += [iguana_haha]
>
Why naming_headers and naming_servers and not haha_headers and haha_servers
> ??



Correct If you have headers for haha (libs/haha):
Add:
(haha_lib, haha_headers, haha_servers)    = ig_env.Package("libs/haha")

, I included just for the example naming headers so things could work
easier.


> ----------------------------------------
> >
> > You should also provide an SConscript at iguana/haha where you
> > set server
> > priority, you  must return an object, something like:
> >
> > obj = env.KengeProgram("ig_haha",weaver =
> > env.WeaverIguanaProgramServer(server_name =
> > iguana_object_env['haha_server'], priority=238),}
> >
> > Hope it helps.
> >
> > Jorge
> >
> >
> > On 10/11/07, j_hieb at insightbb.com <j_hieb at insightbb.com> wrote:
> > >
> > > I am working on adding a new server to iguana.
> > >
> > > libs/newserver/includes/interfaces/newserver.idl4  has
> > the following:
> > >
> > > import "iguana/types.h"
> > >
> > > [uuid(45)]
> > > interface newserver_read
> > > {
> > >         int test_op(in
> > int input);
> > > };
> > >
> > > and   iguana/newserver/src/main.c  has
> > > int
> > > main(int argc, char **argv)
> > > {
> > >     printf("starting newserver main \n");
> > >     server_loop();
> > >     assert(!"Shouldn't reach here\n");
> > > }
> > >
> > > I have the newserver tied in in the SConstruct in /projects/iguana/
> > >
> > > without  int test_op(in int input);
> > > everything builds fine.
> > >
> > > But when I add the int test_op(...)  I need to include
> > > <interfaces/newserver_serverdecls.h>
> > > in iguana/newserver/src/main.c
> > >
> > > to get the declaration of
> > >
> > > int newserver_read_test_op_impl(L4_ThreadId_t caller, int input,
> > > idl4_server_environment *env)
> > >
> > > but newserver_serverdecls.h is not created.
> > >
> > > Do I need to add something to the
> > libs/newserver/SConstruct  ??
> > >
> > > How do I get magpie to create the newserver_serverdecls.h ??
> > >
> > > Thanks, jlh
> > >
> > >
> > >
> > >
> > >
> > > Jeffrey L. Hieb
> > >
> > > Doctoral Candidate
> > > Computer Science and Computer Engineering
> > > J. B. Speed School of Engineering
> > > University of Louisville
> > >
> > > j_hieb at insightbb.com
> > > jlhieb01 at louisville.edu
> > >
> > >
> > > _______________________________________________
> > > Developer mailing list
> > > Developer at okl4.org
> > > https://lists.okl4.org/mailman/listinfo/developer
> > >
> > >
> >
>
> Thanks,
> Jeff
>
>
> Jeffrey L. Hieb
>
> Doctoral Candidate
> Computer Science and Computer Engineering
> J. B. Speed School of Engineering
> University of Louisville
>
> j_hieb at insightbb.com
> jlhieb01 at louisville.edu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20071011/99d94da9/attachment.htm 


More information about the Developer mailing list