<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>libpd is really going to be a reference for what you can remove in s_inter.c &nbsp; Most of what s_inter.c does is starting Pd and Pd's GUI. &nbsp;Check out the startup sequence in libpd. &nbsp;Or really, just work with libpd directly, or are you already?</div><div><br></div><div>.hc</div><br><div><div>On Jul 27, 2011, at 4:12 PM, Andrew VanderVeen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks for the help, I appreciate it.<br><br>Right now I'm just going through and removing references to functions in each those files (s_loader.c, s_inter.c, x_net.c), replacing them with stuff that will silently fail or do nothing, and things are compiling well.<br> <br>Just to be sure (s_inter.c seems very large), if I completely remove s_inter.c, am I going to break things, or should I be writing basic functions (return 0 or -1) for each of the functions in socket.h?<br><br>Again, thanks for the quick responses. This is really helping me out a lot!<br> <br>-Andrew<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 3:39 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <br> <br> In terms of feasibility, most of Pd is really plain C, so it should be an easy port. &nbsp;The only things that are not are the various I/O methods (audio, midi, files, net, etc). &nbsp;You'll need to write a audio I/O driver, that'll probably be in Java. &nbsp;You can look at the Android port for an example. &nbsp;libpd talks to the Java audio I/O via a JNI lib.<div class="im"> <br> <br> On Jul 27, 2011, at 2:28 PM, Mathieu Bouchard wrote:<br> <br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> On Wed, 27 Jul 2011, Andrew VanderVeen wrote:<br> <br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> So, since it's not exactly ideal to re-implement these headers in Java (I don't even know if it's possible), is there a way that I can pull these files out of the pure data project? &nbsp;I'm not entirely sure what they do, or how essential/core they are to the project. &nbsp;Can I just remove certain (unneeded?) functionality?<br> </blockquote> <br> No &lt;dlfcn.h&gt; means no externals except by explicit linkage.<br> </blockquote> <br></div> Yeah, basically, if you want to add extra objects, then'll need to be compiled and linked in before processing with cibyl. &nbsp;You can ignore that stuff to get things working, indeed the iOS version does not use it at all. &nbsp;Then later you can figure out how to include external objects if need be.<div class="im"> <br> <br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> No &lt;socket.h&gt; means no gui, no [netsend] and no [netreceive].<br> </blockquote> <br> <br></div> Since you're most interested in the libpd approach, then you don't need to worry about the socket for the GUI. &nbsp;That you can skip. &nbsp;Indeed that's the normal way with libpd. &nbsp;As for [netsend] and [netreceive], those are a way<br> <br> .hc<br> <br> <br> <br> ------------------------------<u></u>------------------------------<u></u>----------------<br> <br> Programs should be written for people to read, and only incidentally for machines to execute.<br> &nbsp;- from Structure and Interpretation of Computer Programs<br> <br> </blockquote></div><br></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies.<span class="Apple-converted-space">&nbsp;</span>&nbsp; &nbsp; - Amy Smith</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>