in reply to Embedded perl question

write an XS module wrapping the C calls you want, link the .c file generated form the .xs on your program, and call its boot_Foo function just after initilizing the perl interpreter. After that, you should be able to call the wrapped functions from your embedded perl.

About the namespace, if you want your functions to live in main::, just indicate it with the PACKAGE directive inside the XS file.