Two updates.
After talking to Lionel about libtifiles it looks much of the input filtering I thought I was going to have to implement is actually being implemented upstream so that will save me quite a bit of work and make my code much cleaner. The one down side to this is that I will have to require the svn version of libtifiles until TiLP 1.15 comes out or even after that.
The second thing I found out, thanks to benryves and Tari on IRC, is that Windows doesn't provide the getopt_long or even the POSIX getopt so I will have to move to a different option parser if I plan to support windows. My plan was to use glib's as it is already required by libti and TiLP so it is not the end of the world but I was still trying to avoid its use. I'm not 100% familiar with the library setup on windows so it will be a bit more work to get everything working the way I'd like.
One advantage of using glib's getopt functions is that it can handle the help and Version stuff for me so that is an added bonus.
Finally depending on how much luck I have moving to glib I hope to release version 0.1 beta 1 in the near future though I'm not sure if I want do the move to glib first or wait till a later release.
After talking to Lionel about libtifiles it looks much of the input filtering I thought I was going to have to implement is actually being implemented upstream so that will save me quite a bit of work and make my code much cleaner. The one down side to this is that I will have to require the svn version of libtifiles until TiLP 1.15 comes out or even after that.
The second thing I found out, thanks to benryves and Tari on IRC, is that Windows doesn't provide the getopt_long or even the POSIX getopt so I will have to move to a different option parser if I plan to support windows. My plan was to use glib's as it is already required by libti and TiLP so it is not the end of the world but I was still trying to avoid its use. I'm not 100% familiar with the library setup on windows so it will be a bit more work to get everything working the way I'd like.
One advantage of using glib's getopt functions is that it can handle the help and Version stuff for me so that is an added bonus.
Finally depending on how much luck I have moving to glib I hope to release version 0.1 beta 1 in the near future though I'm not sure if I want do the move to glib first or wait till a later release.