Hi,<br><br>To add a new server; for example (server name=haha):<br><br>---projects/iguana/SConstruct-<div id="mb_4">----<br>.<br>.<br>iguana_object_env = {<br> 'naming_server' : 0x100,
<br> 'trace_server' : 0x101,<br> 'serial_server' : 0x102,<br> 'timer_server' : 0x103,<br> 'haha_server' : 0x104, #added line<br> 'wombat_vmalloc' : 0x1111,<br>
'wombat_rootfs' : 0x1112,<br> 'wombat_vmlinux' : 0x1113,<br> 'vga_area' : 0x1114,<br> } <br>.<br>.<br>.<br>iguana_haha = ig_env.Package("iguana/haha",<br> idl_server_headers = naming_headers,
<br> idl_server_src = naming_servers)<br>apps += [iguana_haha]<br>----------------------------------------<br><br>You should also provide an SConscript at iguana/haha where you set server priority, you must return an object, something like:
<br><br>obj = env.KengeProgram("ig_haha",weaver = <br>env.WeaverIguanaProgramServer(server_name = <br>iguana_object_env['haha_server'], priority=238),} <br><br>Hope it helps.<br><br>Jorge<br></div><br>
<br><div><span class="gmail_quote">On 10/11/07, <b class="gmail_sendername"><a href="mailto:j_hieb@insightbb.com">j_hieb@insightbb.com</a></b> <<a href="mailto:j_hieb@insightbb.com">j_hieb@insightbb.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am working on adding a new server to iguana. <br><br>libs/newserver/includes/interfaces/newserver.idl4 has the following:
<br><br>import "iguana/types.h"<br><br>[uuid(45)]<br>interface newserver_read<br>{<br> int test_op(in int input);<br>};<br><br>and iguana/newserver/src/main.c has <br>int<br>main(int argc, char **argv)
<br>{<br> printf("starting newserver main \n");<br> server_loop();<br> assert(!"Shouldn't reach here\n");<br>}<br><br>I have the newserver tied in in the SConstruct in /projects/iguana/ <br>
<br>without int test_op(in int input);<br>everything builds fine.<br><br>But when I add the int test_op(...) I need to include <interfaces/newserver_serverdecls.h><br>in iguana/newserver/src/main.c<br><br>to get the declaration of
<br><br>int newserver_read_test_op_impl(L4_ThreadId_t caller, int input, idl4_server_environment *env)<br><br>but newserver_serverdecls.h is not created.<br><br>Do I need to add something to the libs/newserver/SConstruct ??
<br><br>How do I get magpie to create the newserver_serverdecls.h ??<br><br>Thanks, jlh<br><br><br><br><br><br> Jeffrey L. Hieb<br><br>Doctoral Candidate<br>Computer Science and Computer Engineering<br>J. B. Speed School of Engineering
<br>University of Louisville<br><br><a href="mailto:j_hieb@insightbb.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">j_hieb@insightbb.com</a><br><a href="mailto:jlhieb01@louisville.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jlhieb01@louisville.edu</a><br><br>
<br>_______________________________________________<br>Developer mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Developer@okl4.org">Developer@okl4.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.okl4.org/mailman/listinfo/developer" target="_blank">
https://lists.okl4.org/mailman/listinfo/developer</a><br><br></blockquote></div><br>