<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.9.1">
  <compounddef id="contactprovider_8c" kind="file" language="C++">
    <compoundname>contactprovider.c</compoundname>
    <includes refid="contact__providers__priv_8h" local="yes">contact_providers_priv.h</includes>
    <includes refid="contactprovider_8h" local="yes">contactprovider.h</includes>
    <includes refid="linphonecore_8h" local="no">linphonecore.h</includes>
      <sectiondef kind="var">
      <memberdef kind="variable" id="contactprovider_8c_1a9578bf94fd913a1b19c44c1213156cf2" prot="public" static="no" mutable="no">
        <type></type>
        <definition>NULL</definition>
        <argsstring></argsstring>
        <name>NULL</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="136" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="133" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="contactprovider_8c_1a44e4f02915b8926343b843e6082fd460" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_contact_search_init</definition>
        <argsstring>(LinphoneContactSearch *obj, const char *predicate, ContactSearchCallback cb, void *cb_data)</argsstring>
        <name>linphone_contact_search_init</name>
        <param>
          <type>LinphoneContactSearch *</type>
          <declname>obj</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>predicate</declname>
        </param>
        <param>
          <type>ContactSearchCallback</type>
          <declname>cb</declname>
        </param>
        <param>
          <type>void *</type>
          <declname>cb_data</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="25" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="25" bodyend="35"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a26f34d0763a72cd0838d89139c6f0aa4" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void linphone_contact_search_destroy</definition>
        <argsstring>(LinphoneContactSearch *req)</argsstring>
        <name>linphone_contact_search_destroy</name>
        <param>
          <type>LinphoneContactSearch *</type>
          <declname>req</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="37" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="37" bodyend="39"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a8c7d6de9590844f3a4ae5272168bf4be" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>ContactSearchID</type>
        <definition>ContactSearchID linphone_contact_search_get_id</definition>
        <argsstring>(LinphoneContactSearch *obj)</argsstring>
        <name>linphone_contact_search_get_id</name>
        <param>
          <type>LinphoneContactSearch *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="41" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="41" bodyend="44"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a537088eeeeb0d07bdf7f393b22745435" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>const char *</type>
        <definition>const char* linphone_contact_search_get_predicate</definition>
        <argsstring>(LinphoneContactSearch *obj)</argsstring>
        <name>linphone_contact_search_get_predicate</name>
        <param>
          <type>LinphoneContactSearch *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="46" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="46" bodyend="49"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1af4274f19fa631fbfe85e6c61f5044d08" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_contact_search_invoke_cb</definition>
        <argsstring>(LinphoneContactSearch *req, MSList *friends)</argsstring>
        <name>linphone_contact_search_invoke_cb</name>
        <param>
          <type>LinphoneContactSearch *</type>
          <declname>req</declname>
        </param>
        <param>
          <type>MSList *</type>
          <declname>friends</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="51" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="51" bodyend="54"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1afc8076ae6acd47937d5c5d81c463373f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_contact_search_compare</definition>
        <argsstring>(const void *a, const void *b)</argsstring>
        <name>linphone_contact_search_compare</name>
        <param>
          <type>const void *</type>
          <declname>a</declname>
        </param>
        <param>
          <type>const void *</type>
          <declname>b</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="56" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="56" bodyend="60"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1ab5908692fcc7773b957ab166a53eb452" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>LinphoneContactSearch *</type>
        <definition>LinphoneContactSearch* linphone_contact_search_ref</definition>
        <argsstring>(void *obj)</argsstring>
        <name>linphone_contact_search_ref</name>
        <param>
          <type>void *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="62" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="62" bodyend="65"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a39bcfbbce6fbb146b0f5acfde56666f0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_ldap_contact_search_unref</definition>
        <argsstring>(void *obj)</argsstring>
        <name>linphone_ldap_contact_search_unref</name>
        <param>
          <type>void *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="67" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="67" bodyend="70"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1ae904d21d43e1a741a75a8c4c7800de33" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>LinphoneContactSearch *</type>
        <definition>LinphoneContactSearch* linphone_contact_search_cast</definition>
        <argsstring>(void *obj)</argsstring>
        <name>linphone_contact_search_cast</name>
        <param>
          <type>void *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="72" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="72" bodyend="75"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a74b3ba59842c9880c910b749c9acb8ae" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES</definition>
        <argsstring>(LinphoneContactSearch)</argsstring>
        <name>BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES</name>
        <param>
          <type>LinphoneContactSearch</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="77" column="1"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1af9f86fcd3ec1a029b1b5440232451885" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>BELLE_SIP_INSTANCIATE_VPTR</definition>
        <argsstring>(LinphoneContactSearch, belle_sip_object_t,(belle_sip_object_destroy_t) linphone_contact_search_destroy, NULL, NULL, FALSE)</argsstring>
        <name>BELLE_SIP_INSTANCIATE_VPTR</name>
        <param>
          <type>LinphoneContactSearch</type>
        </param>
        <param>
          <type>belle_sip_object_t</type>
        </param>
        <param>
          <type>(belle_sip_object_destroy_t)</type>
          <declname>linphone_contact_search_destroy</declname>
        </param>
        <param>
          <type>NULL</type>
        </param>
        <param>
          <type>NULL</type>
        </param>
        <param>
          <type>FALSE</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="79" column="1"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a5274b0b1054cbe54f1dbd238dc07437f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_contact_provider_init</definition>
        <argsstring>(LinphoneContactProvider *obj, LinphoneCore *lc)</argsstring>
        <name>linphone_contact_provider_init</name>
        <param>
          <type>LinphoneContactProvider *</type>
          <declname>obj</declname>
        </param>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="93" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="93" bodyend="95"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a31aef4fd55668b8183bc1e13ce2078a8" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void contact_provider_destroy</definition>
        <argsstring>(LinphoneContactProvider *obj)</argsstring>
        <name>contact_provider_destroy</name>
        <param>
          <type>LinphoneContactProvider *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="97" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="97" bodyend="99"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a608750d0743133b0e486a5178baa5be7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>LinphoneContactSearch *</type>
        <definition>LinphoneContactSearch* linphone_contact_provider_begin_search</definition>
        <argsstring>(LinphoneContactProvider *obj, const char *predicate, ContactSearchCallback cb, void *data)</argsstring>
        <name>linphone_contact_provider_begin_search</name>
        <param>
          <type>LinphoneContactProvider *</type>
          <declname>obj</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>predicate</declname>
        </param>
        <param>
          <type>ContactSearchCallback</type>
          <declname>cb</declname>
        </param>
        <param>
          <type>void *</type>
          <declname>data</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="101" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="101" bodyend="104"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a47c775530ddbb5aad0a4ec6ec191788d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_contact_provider_cancel_search</definition>
        <argsstring>(LinphoneContactProvider *obj, LinphoneContactSearch *request)</argsstring>
        <name>linphone_contact_provider_cancel_search</name>
        <param>
          <type>LinphoneContactProvider *</type>
          <declname>obj</declname>
        </param>
        <param>
          <type>LinphoneContactSearch *</type>
          <declname>request</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="106" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="106" bodyend="109"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a5f45976a65df8d899528ca30f5434e45" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>LinphoneContactProvider *</type>
        <definition>LinphoneContactProvider* linphone_contact_provider_ref</definition>
        <argsstring>(void *obj)</argsstring>
        <name>linphone_contact_provider_ref</name>
        <param>
          <type>void *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="111" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="111" bodyend="114"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a8e03b7accc29dc4b5c6defee62b1090f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_contact_provider_unref</definition>
        <argsstring>(void *obj)</argsstring>
        <name>linphone_contact_provider_unref</name>
        <param>
          <type>void *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="116" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="116" bodyend="119"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a9836d0edf055bb61d724818d633c43ef" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>LinphoneContactProvider *</type>
        <definition>LinphoneContactProvider* linphone_contact_provider_cast</definition>
        <argsstring>(void *obj)</argsstring>
        <name>linphone_contact_provider_cast</name>
        <param>
          <type>void *</type>
          <declname>obj</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="121" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="121" bodyend="124"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a877116396c7338bed269c386a4ac226a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES</definition>
        <argsstring>(LinphoneContactProvider)</argsstring>
        <name>BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES</name>
        <param>
          <type>LinphoneContactProvider</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="126" column="1"/>
      </memberdef>
      <memberdef kind="function" id="contactprovider_8c_1a907be7053b86d55eefec7f306aa80e46" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_BEGIN</definition>
        <argsstring>(LinphoneContactProvider)</argsstring>
        <name>BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_BEGIN</name>
        <param>
          <type>LinphoneContactProvider</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" line="127" column="1" bodyfile="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c" bodystart="127" bodyend="133"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>program<sp/>is<sp/>free<sp/>software;<sp/>you<sp/>can<sp/>redistribute<sp/>it<sp/>and/or<sp/>modify</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/><sp/>it<sp/>under<sp/>the<sp/>terms<sp/>of<sp/>the<sp/>GNU<sp/>General<sp/>Public<sp/>License<sp/>as<sp/>published<sp/>by</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/><sp/>the<sp/>Free<sp/>Software<sp/>Foundation;<sp/>either<sp/>version<sp/>2<sp/>of<sp/>the<sp/>License,<sp/>or</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/><sp/>(at<sp/>your<sp/>option)<sp/>any<sp/>later<sp/>version.</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>program<sp/>is<sp/>distributed<sp/>in<sp/>the<sp/>hope<sp/>that<sp/>it<sp/>will<sp/>be<sp/>useful,</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/><sp/>but<sp/>WITHOUT<sp/>ANY<sp/>WARRANTY;<sp/>without<sp/>even<sp/>the<sp/>implied<sp/>warranty<sp/>of</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/>MERCHANTABILITY<sp/>or<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE.<sp/><sp/>See<sp/>the</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/>GNU<sp/>Library<sp/>General<sp/>Public<sp/>License<sp/>for<sp/>more<sp/>details.</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/><sp/>You<sp/>should<sp/>have<sp/>received<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>GNU<sp/>General<sp/>Public<sp/>License</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/>along<sp/>with<sp/>this<sp/>program;<sp/>if<sp/>not,<sp/>write<sp/>to<sp/>the<sp/>Free<sp/>Software</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/>Foundation,<sp/>Inc.,<sp/>59<sp/>Temple<sp/>Place<sp/>-<sp/>Suite<sp/>330,<sp/>Boston,<sp/>MA<sp/>02111-1307,<sp/>USA.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="16"><highlight class="normal"></highlight></codeline>
<codeline lineno="17"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;contact_providers_priv.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="18"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;contactprovider.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;linphonecore.h&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight></codeline>
<codeline lineno="21"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>############################<sp/>*</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/>LinphoneContactSearchRequest<sp/>*</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/>############################<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight></codeline>
<codeline lineno="25"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_contact_search_init(LinphoneContactSearch*<sp/>obj,</highlight></codeline>
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*<sp/>predicate,</highlight></codeline>
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ContactSearchCallback<sp/>cb,</highlight></codeline>
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>cb_data)</highlight></codeline>
<codeline lineno="29"><highlight class="normal">{</highlight></codeline>
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>request_id_counter<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>obj-&gt;id<sp/>=<sp/>request_id_counter++;<sp/></highlight><highlight class="comment">//<sp/>unique<sp/>id</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>obj-&gt;predicate<sp/>=<sp/>ms_strdup(predicate?predicate:</highlight><highlight class="stringliteral">&quot;&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>obj-&gt;cb<sp/><sp/><sp/>=<sp/>cb;</highlight></codeline>
<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>obj-&gt;data<sp/>=<sp/>cb_data;</highlight></codeline>
<codeline lineno="35"><highlight class="normal">}</highlight></codeline>
<codeline lineno="36"><highlight class="normal"></highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_contact_search_destroy(<sp/>LinphoneContactSearch*<sp/>req)<sp/>{</highlight></codeline>
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>req-&gt;predicate<sp/>)<sp/>ms_free(req-&gt;predicate);</highlight></codeline>
<codeline lineno="39"><highlight class="normal">}</highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal">ContactSearchID<sp/>linphone_contact_search_get_id(LinphoneContactSearch*<sp/>obj)</highlight></codeline>
<codeline lineno="42"><highlight class="normal">{</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>obj-&gt;id;</highlight></codeline>
<codeline lineno="44"><highlight class="normal">}</highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*linphone_contact_search_get_predicate(LinphoneContactSearch*<sp/>obj)</highlight></codeline>
<codeline lineno="47"><highlight class="normal">{</highlight></codeline>
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>obj-&gt;predicate;</highlight></codeline>
<codeline lineno="49"><highlight class="normal">}</highlight></codeline>
<codeline lineno="50"><highlight class="normal"></highlight></codeline>
<codeline lineno="51"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_contact_search_invoke_cb(LinphoneContactSearch*<sp/>req,<sp/>MSList*<sp/>friends)</highlight></codeline>
<codeline lineno="52"><highlight class="normal">{</highlight></codeline>
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>req-&gt;cb<sp/>)<sp/>req-&gt;cb(req,<sp/>friends,<sp/>req-&gt;data);</highlight></codeline>
<codeline lineno="54"><highlight class="normal">}</highlight></codeline>
<codeline lineno="55"><highlight class="normal"></highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>linphone_contact_search_compare(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>a,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>b)<sp/>{</highlight></codeline>
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>LinphoneContactSearch<sp/>*ra=((LinphoneContactSearch*)a);</highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>LinphoneContactSearch<sp/>*rb=((LinphoneContactSearch*)b);</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>!(ra-&gt;id<sp/>==<sp/>rb-&gt;id);<sp/></highlight><highlight class="comment">//<sp/>return<sp/>0<sp/>if<sp/>id<sp/>is<sp/>equal,<sp/>1<sp/>otherwise</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="60"><highlight class="normal">}</highlight></codeline>
<codeline lineno="61"><highlight class="normal"></highlight></codeline>
<codeline lineno="62"><highlight class="normal">LinphoneContactSearch*linphone_contact_search_ref(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>obj)</highlight></codeline>
<codeline lineno="63"><highlight class="normal">{</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>LINPHONE_CONTACT_SEARCH(belle_sip_object_ref(obj));</highlight></codeline>
<codeline lineno="65"><highlight class="normal">}</highlight></codeline>
<codeline lineno="66"><highlight class="normal"></highlight></codeline>
<codeline lineno="67"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_ldap_contact_search_unref(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>obj)</highlight></codeline>
<codeline lineno="68"><highlight class="normal">{</highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>belle_sip_object_unref(obj);</highlight></codeline>
<codeline lineno="70"><highlight class="normal">}</highlight></codeline>
<codeline lineno="71"><highlight class="normal"></highlight></codeline>
<codeline lineno="72"><highlight class="normal">LinphoneContactSearch*<sp/>linphone_contact_search_cast(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>obj)</highlight></codeline>
<codeline lineno="73"><highlight class="normal">{</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>LINPHONE_CONTACT_SEARCH(obj);</highlight></codeline>
<codeline lineno="75"><highlight class="normal">}</highlight></codeline>
<codeline lineno="76"><highlight class="normal"></highlight></codeline>
<codeline lineno="77"><highlight class="normal">BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES(LinphoneContactSearch);</highlight></codeline>
<codeline lineno="78"><highlight class="normal"></highlight></codeline>
<codeline lineno="79"><highlight class="normal">BELLE_SIP_INSTANCIATE_VPTR(LinphoneContactSearch,belle_sip_object_t,</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(belle_sip_object_destroy_t)linphone_contact_search_destroy,</highlight></codeline>
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>NULL,<sp/></highlight><highlight class="comment">//<sp/>clone</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>NULL,<sp/></highlight><highlight class="comment">//<sp/>marshal</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>FALSE</highlight></codeline>
<codeline lineno="84"><highlight class="normal">);</highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"></highlight></codeline>
<codeline lineno="87"><highlight class="normal"></highlight></codeline>
<codeline lineno="88"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>#######################<sp/>*</highlight></codeline>
<codeline lineno="89"><highlight class="comment"><sp/>*<sp/>LinphoneContactProvider<sp/>*</highlight></codeline>
<codeline lineno="90"><highlight class="comment"><sp/>*<sp/>#######################<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="91"><highlight class="normal"></highlight></codeline>
<codeline lineno="92"><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_contact_provider_init(LinphoneContactProvider*<sp/>obj,<sp/><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref>*<sp/>lc){</highlight></codeline>
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>obj-&gt;lc<sp/>=<sp/>lc;</highlight></codeline>
<codeline lineno="95"><highlight class="normal">}</highlight></codeline>
<codeline lineno="96"><highlight class="normal"></highlight></codeline>
<codeline lineno="97"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>contact_provider_destroy(LinphoneContactProvider*<sp/>obj){</highlight></codeline>
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(void)obj;</highlight></codeline>
<codeline lineno="99"><highlight class="normal">}</highlight></codeline>
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
<codeline lineno="101"><highlight class="normal">LinphoneContactSearch*<sp/>linphone_contact_provider_begin_search(LinphoneContactProvider*<sp/>obj,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*<sp/>predicate,<sp/>ContactSearchCallback<sp/>cb,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>data)</highlight></codeline>
<codeline lineno="102"><highlight class="normal">{</highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>BELLE_SIP_OBJECT_VPTR(obj,LinphoneContactProvider)-&gt;begin_search(<sp/>LINPHONE_CONTACT_PROVIDER(obj),<sp/>predicate,<sp/>cb,<sp/>data);</highlight></codeline>
<codeline lineno="104"><highlight class="normal">}</highlight></codeline>
<codeline lineno="105"><highlight class="normal"></highlight></codeline>
<codeline lineno="106"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>linphone_contact_provider_cancel_search(LinphoneContactProvider*<sp/>obj,<sp/>LinphoneContactSearch*<sp/>request)</highlight></codeline>
<codeline lineno="107"><highlight class="normal">{</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>BELLE_SIP_OBJECT_VPTR(obj,LinphoneContactProvider)-&gt;cancel_search(<sp/>LINPHONE_CONTACT_PROVIDER(obj),<sp/>request);</highlight></codeline>
<codeline lineno="109"><highlight class="normal">}</highlight></codeline>
<codeline lineno="110"><highlight class="normal"></highlight></codeline>
<codeline lineno="111"><highlight class="normal">LinphoneContactProvider*<sp/>linphone_contact_provider_ref(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>obj)</highlight></codeline>
<codeline lineno="112"><highlight class="normal">{</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>LINPHONE_CONTACT_PROVIDER(belle_sip_object_ref(obj));</highlight></codeline>
<codeline lineno="114"><highlight class="normal">}</highlight></codeline>
<codeline lineno="115"><highlight class="normal"></highlight></codeline>
<codeline lineno="116"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_contact_provider_unref(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>obj)</highlight></codeline>
<codeline lineno="117"><highlight class="normal">{</highlight></codeline>
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>belle_sip_object_unref(obj);</highlight></codeline>
<codeline lineno="119"><highlight class="normal">}</highlight></codeline>
<codeline lineno="120"><highlight class="normal"></highlight></codeline>
<codeline lineno="121"><highlight class="normal">LinphoneContactProvider*linphone_contact_provider_cast(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>obj)</highlight></codeline>
<codeline lineno="122"><highlight class="normal">{</highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>LINPHONE_CONTACT_PROVIDER(obj);</highlight></codeline>
<codeline lineno="124"><highlight class="normal">}</highlight></codeline>
<codeline lineno="125"><highlight class="normal"></highlight></codeline>
<codeline lineno="126"><highlight class="normal">BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES(LinphoneContactProvider);</highlight></codeline>
<codeline lineno="127"><highlight class="normal">BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_BEGIN(LinphoneContactProvider)</highlight></codeline>
<codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BELLE_SIP_VPTR_INIT(LinphoneContactProvider,belle_sip_object_t,TRUE),</highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(belle_sip_object_destroy_t)<sp/>contact_provider_destroy,</highlight></codeline>
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>NULL,</highlight><highlight class="comment">/*no<sp/>clone*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>NULL,</highlight><highlight class="comment">/*no<sp/>marshal*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>},</highlight></codeline>
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Pure<sp/>virtual</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>NULL,<sp/></highlight><highlight class="comment">/*<sp/>begin_search<sp/>-&gt;<sp/>pure<sp/>virtual<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>NULL<sp/><sp/></highlight><highlight class="comment">/*<sp/>cancel_search<sp/>-&gt;<sp/>pure<sp/>virtual<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="138"><highlight class="normal">BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_END</highlight></codeline>
    </programlisting>
    <location file="/usr/src/slapt-src/network/linphone/linphone-3.9.1/coreapi/contactprovider.c"/>
  </compounddef>
</doxygen>
