[okl4-developer] magpie _serverdecls.h
j_hieb at insightbb.com
j_hieb at insightbb.com
Fri Oct 12 01:27:26 EST 2007
Hi, Jorge
On Thursday, October 11, 2007 @ 10:22 am Jorge Torres wrote:
> Hi,
>
> To add a new server; for example (server name=haha):
>
> ---projects/iguana/SConstruct-----
> .
> .
> iguana_object_env = {
> 'naming_server' : 0x100,
> 'trace_server' : 0x101,
> 'serial_server' : 0x102,
> 'timer_server' : 0x103,
> 'haha_server' : 0x104, #added line
> 'wombat_vmalloc' : 0x1111,
> 'wombat_rootfs' : 0x1112,
> 'wombat_vmlinux' : 0x1113,
>
> 'vga_area' : 0x1114,
> }
I had done this
> .
> .
> .
> 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 ??
> ----------------------------------------
>
> 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/66c939d9/attachment.htm
More information about the Developer
mailing list