<div class="gmail_quote">On Thu, Jun 16, 2011 at 1:57 PM, jesse <span dir="ltr"><<a href="mailto:chat2jesse@gmail.com">chat2jesse@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
in file switch_loadable_module.c: <div><br></div><div><br></div><div>switch_loadable_module_load_file(char *path, char *filename, switch_bool_t global, switch_loadable_module_t **new_module)<br><div><br></div><div><div><div>
#ifdef WIN32</div><div> dso = switch_dso_open("FreeSwitch.dll", load_global, &derr);</div><div>#elif defined (MACOSX) || defined(DARWIN)</div><div> dso = switch_dso_open(SWITCH_PREFIX_DIR "/lib/libfreeswitch.dylib", load_global, &derr);</div>
<div>#else</div><div> dso = switch_dso_open(NULL, load_global, &derr);</div><div>#endif</div></div><div><br></div><div> </div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div><div></div><div><br></div><div>why the else case is dso open "NULL"? shouldn't it be lib/libfreeswitch.so?</div></div></div></blockquote><div><br></div><div>Looks cleaner this way to me. Read the man page for dlopen(). If NULL is provided, the handle for the main program will be returned and dlsym() will look into the main program and libraries loaded at startup for the symbol.</div>
<div> </div><div>Moises Silva<br>Senior Software Engineer, Software Development Manager<br>Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada<br>t. 1 905 474 1990 x128 | e. <a href="mailto:moy@sangoma.com" target="_blank">moy@sangoma.com</a><br>
<br><br></div></div>