<HTML> <STYLE> <!-- A{textdecoration:none} --> </STYLE> <STYLE type="text/css"> A:link, A:visited, A:active { text-decoration: none; } </STYLE> <HEAD> <TITLE>IDirectFB - GetInterface [DirectFB Reference Manual]</TITLE> </HEAD> <BODY bgcolor=#C0C8D8 link=#2369E0 vlink=#2369E0 text=#232323> <TABLE width=100% bgcolor=#8090A0 border=0 cellspacing=0 cellpadding=5> <TR><TD width=30%> <A href="http://www.directfb.org"><IMG border=0 src="dfb_logo-alpha.png"></A> </TD><TD align=right> <A href="index.html"><FONT size=+3 color=#203040>Reference Manual - 1.5.3</FONT></A> </TD></TR> <TR><TD colspan=2 align=center bgcolor=#284460> <TABLE border=0 cellspacing=0 cellpadding=0> <TR><TD nowrap align=right width=50%> <BIG><FONT color=#D0D0D0><A href="IDirectFB.html"> <FONT color=#D0D0D0>IDirectFB</FONT></A> </FONT></BIG> </TD><TD nowrap align=left width=50%> <BIG><FONT color=#E09040> GetInterface</FONT></BIG> </TD></TR> </TABLE> </TD></TR> </TABLE> <H4> Load an implementation of a specific interface type. </H4> <TABLE border=0 cellspacing=4 cellpadding=2 bgcolor=#D8E0E8> <TR><TD colspan=5><I><FONT color=#425469><A href="types.html#DFBResult">DFBResult</A> <b>GetInterface (</b></FONT></I></TD></TR> <TR><TD width=50> </TD><TD valign=top> <A href="IDirectFB.html">IDirectFB</A> </TD><TD width=20> </TD><TD align=right> <FONT color=#424242><B>*</B></FONT> </TD><TD valign=top> <FONT color=#234269><B>thiz,</B></FONT> </TD></TR> <TR><TD width=50> </TD><TD valign=top> const char </TD><TD width=20> </TD><TD align=right> <FONT color=#424242><B>*</B></FONT> </TD><TD valign=top> <FONT color=#234269><B>type,</B></FONT> </TD></TR> <TR><TD width=50> </TD><TD valign=top> const char </TD><TD width=20> </TD><TD align=right> <FONT color=#424242><B>*</B></FONT> </TD><TD valign=top> <FONT color=#234269><B>implementation,</B></FONT> </TD></TR> <TR><TD width=50> </TD><TD valign=top> void </TD><TD width=20> </TD><TD align=right> <FONT color=#424242><B>*</B></FONT> </TD><TD valign=top> <FONT color=#234269><B>arg,</B></FONT> </TD></TR> <TR><TD width=50> </TD><TD valign=top> void </TD><TD width=20> </TD><TD align=right> <FONT color=#424242><B>**</B></FONT> </TD><TD valign=top> <FONT color=#234269><B>ret_interface</B></FONT> </TD></TR> <TR><TD colspan=5><I><FONT color=#425469><b>);</b></FONT></I></TD></TR> </TABLE> </P> <P> This methods loads an interface implementation of the specified <b>type</b> of interface, e.g. "IFusionSound". </P><P> A specific implementation can be forced with the optional <b>implementation</b> argument. </P><P> Implementations are passed <b>arg</b> during probing and construction. </P><P> If an implementation has been successfully probed and the interface has been constructed, the resulting interface pointer is stored in <b>interface</b>. </P> <TABLE width=100% bgcolor=#E0E8F0 border=0 cellspacing=1 cellpadding=3> <TR><TD width=100> <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"> <img alt="Creative Commons License" style="border-width:0" border="0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /> </a> </TD><TD> This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"> Creative Commons Attribution-Share Alike 3.0 License</a> </TD></TR> </TABLE> </BODY> </HTML>