<?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.8">
  <compounddef id="presence_8c" kind="file">
    <compoundname>presence.c</compoundname>
    <includes refid="linphonecore_8h" local="yes">linphonecore.h</includes>
    <includes refid="private_8h" local="yes">private.h</includes>
    <includes refid="lpconfig_8h" local="yes">lpconfig.h</includes>
    <includes refid="linphonepresence_8h" local="yes">linphonepresence.h</includes>
    <innerclass refid="struct__LinphonePresenceNote" prot="public">_LinphonePresenceNote</innerclass>
    <innerclass refid="struct__LinphonePresenceService" prot="public">_LinphonePresenceService</innerclass>
    <innerclass refid="struct__LinphonePresenceActivity" prot="public">_LinphonePresenceActivity</innerclass>
    <innerclass refid="struct__LinphonePresencePerson" prot="public">_LinphonePresencePerson</innerclass>
    <innerclass refid="struct__LinphonePresenceModel" prot="public">_LinphonePresenceModel</innerclass>
    <innerclass refid="struct__get__activity__st" prot="public">_get_activity_st</innerclass>
    <innerclass refid="struct__find__note__st" prot="public">_find_note_st</innerclass>
    <innerclass refid="struct__presence__activity__name__map" prot="public">_presence_activity_name_map</innerclass>
    <innerclass refid="struct__presence__service__obj__st" prot="public">_presence_service_obj_st</innerclass>
    <innerclass refid="struct__presence__person__obj__st" prot="public">_presence_person_obj_st</innerclass>
    <innerclass refid="struct__presence__activity__obj__st" prot="public">_presence_activity_obj_st</innerclass>
    <innerclass refid="struct__presence__note__obj__st" prot="public">_presence_note_obj_st</innerclass>
      <sectiondef kind="var">
      <memberdef kind="variable" id="presence_8c_1aa356b3640db177db71570880d7ba88ec" prot="public" static="yes" mutable="no">
        <type>const char *</type>
        <definition>const char* person_prefix</definition>
        <argsstring></argsstring>
        <name>person_prefix</name>
        <initializer>= &quot;/pidf:presence/dm:person&quot;</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="78" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="78" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="presence_8c_1a2bf6b2e905def4785c12e07869c0daf9" prot="public" static="yes" mutable="no">
        <type>char</type>
        <definition>char presence_id_valid_characters[]</definition>
        <argsstring>[]</argsstring>
        <name>presence_id_valid_characters</name>
        <initializer>= &quot;0123456789abcdefghijklmnopqrstuvwxyz-.&quot;</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="85" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="85" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="presence_8c_1ace604f38142b013150a7259e8a91db61" prot="public" static="yes" mutable="no">
        <type>char</type>
        <definition>char presence_id_valid_start_characters[]</definition>
        <argsstring>[]</argsstring>
        <name>presence_id_valid_start_characters</name>
        <initializer>= &quot;:_abcdefghijklmnopqrstuvwxyz&quot;</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="87" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="87" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="presence_8c_1afc66b8f100707e37c4fdd7e424a5ae00" prot="public" static="yes" mutable="no">
        <type>struct _presence_activity_name_map</type>
        <definition>struct _presence_activity_name_map activity_map[]</definition>
        <argsstring>[]</argsstring>
        <name>activity_map</name>
        <initializer>= {
	{ &quot;appointment&quot;, LinphonePresenceActivityAppointment },
	{ &quot;away&quot;, LinphonePresenceActivityAway },
	{ &quot;breakfast&quot;, LinphonePresenceActivityBreakfast },
	{ &quot;busy&quot;, LinphonePresenceActivityBusy },
	{ &quot;dinner&quot;, LinphonePresenceActivityDinner },
	{ &quot;holiday&quot;, LinphonePresenceActivityHoliday },
	{ &quot;in-transit&quot;, LinphonePresenceActivityInTransit },
	{ &quot;looking-for-work&quot;, LinphonePresenceActivityLookingForWork },
	{ &quot;lunch&quot;, LinphonePresenceActivityLunch },
	{ &quot;meal&quot;, LinphonePresenceActivityMeal },
	{ &quot;meeting&quot;, LinphonePresenceActivityMeeting },
	{ &quot;on-the-phone&quot;, LinphonePresenceActivityOnThePhone },
	{ &quot;other&quot;, LinphonePresenceActivityOther },
	{ &quot;performance&quot;, LinphonePresenceActivityPerformance },
	{ &quot;permanent-absence&quot;, LinphonePresenceActivityPermanentAbsence },
	{ &quot;playing&quot;, LinphonePresenceActivityPlaying },
	{ &quot;presentation&quot;, LinphonePresenceActivityPresentation },
	{ &quot;shopping&quot;, LinphonePresenceActivityShopping },
	{ &quot;sleeping&quot;, LinphonePresenceActivitySleeping },
	{ &quot;spectator&quot;, LinphonePresenceActivitySpectator },
	{ &quot;steering&quot;, LinphonePresenceActivitySteering },
	{ &quot;travel&quot;, LinphonePresenceActivityTravel },
	{ &quot;tv&quot;, LinphonePresenceActivityTV },
	{ &quot;unknown&quot;, LinphonePresenceActivityUnknown },
	{ &quot;vacation&quot;, LinphonePresenceActivityVacation },
	{ &quot;working&quot;, LinphonePresenceActivityWorking },
	{ &quot;worship&quot;, LinphonePresenceActivityWorship }
}</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="846" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="864" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="presence_8c_1a9fb06acf33bd0264b85f802d9c0a1a80" prot="public" static="yes" mutable="no">
        <type>const char *</type>
        <definition>const char* service_prefix</definition>
        <argsstring></argsstring>
        <name>service_prefix</name>
        <initializer>= &quot;/pidf:presence/pidf:tuple&quot;</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1144" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1144" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="presence_8c_1aeca61ded86f79292ffedb15cb54537ee" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>const char *</type>
        <definition>const char* __policy_enum_to_str</definition>
        <argsstring>(LinphoneSubscribePolicy pol)</argsstring>
        <name>__policy_enum_to_str</name>
        <param>
          <type><ref refid="group__buddy__list_1gaf6e5d308b0b6e0ed6506e060ce51190e" kindref="member">LinphoneSubscribePolicy</ref></type>
          <declname>pol</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="27" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/friend.c" bodystart="629" bodyend="643"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a4e399d672239969b2ed5ce35ab5fd541" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>char *</type>
        <definition>static char* generate_presence_id</definition>
        <argsstring>(void)</argsstring>
        <name>generate_presence_id</name>
        <param>
          <type>void</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="89" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="89" bodyend="99"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a4ec9ed4480ce15637454375e1ac5bda9" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>const char *</type>
        <definition>static const char* presence_basic_status_to_string</definition>
        <argsstring>(LinphonePresenceBasicStatus basic_status)</argsstring>
        <name>presence_basic_status_to_string</name>
        <param>
          <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
          <declname>basic_status</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="101" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="101" bodyend="109"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a4ce63965b2efaf5944d59bfa9af3b611" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_note_delete</definition>
        <argsstring>(LinphonePresenceNote *note)</argsstring>
        <name>presence_note_delete</name>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="111" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="111" bodyend="117"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ab80f30a1f9e2b26c068807c8b08c0d03" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
        <definition>static LinphonePresenceService* presence_service_new</definition>
        <argsstring>(const char *id, LinphonePresenceBasicStatus status)</argsstring>
        <name>presence_service_new</name>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
          <declname>status</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="119" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="119" bodyend="128"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a59647d3f7f437c8e0740d25e76829fb3" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_service_delete</definition>
        <argsstring>(LinphonePresenceService *service)</argsstring>
        <name>presence_service_delete</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="130" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="130" bodyend="140"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a4cb38fd2f3c95a844c21f173a9aef55c" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_service_set_timestamp</definition>
        <argsstring>(LinphonePresenceService *service, time_t timestamp)</argsstring>
        <name>presence_service_set_timestamp</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>time_t</type>
          <declname>timestamp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="142" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="142" bodyend="144"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a48ebfc92d3b0e3dec42eeba7bb15279b" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_service_add_note</definition>
        <argsstring>(LinphonePresenceService *service, LinphonePresenceNote *note)</argsstring>
        <name>presence_service_add_note</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="146" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="146" bodyend="148"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a92cea11e8870d52146552feef2bfe85d" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_activity_delete</definition>
        <argsstring>(LinphonePresenceActivity *activity)</argsstring>
        <name>presence_activity_delete</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="150" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="150" bodyend="155"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a8897a7dc5a8824c2d295a35db7764001" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>time_t</type>
        <definition>static time_t parse_timestamp</definition>
        <argsstring>(const char *timestamp)</argsstring>
        <name>parse_timestamp</name>
        <param>
          <type>const char *</type>
          <declname>timestamp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="157" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="157" bodyend="173"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1aeba32c2e735def6a88fcf52cc82da3f9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>char *</type>
        <definition>char* linphone_timestamp_to_rfc3339_string</definition>
        <argsstring>(time_t timestamp)</argsstring>
        <name>linphone_timestamp_to_rfc3339_string</name>
        <param>
          <type>time_t</type>
          <declname>timestamp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="175" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="175" bodyend="187"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a1f2ec51f67916c9604ef435550ff1638" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
        <definition>static LinphonePresencePerson* presence_person_new</definition>
        <argsstring>(const char *id, time_t timestamp)</argsstring>
        <name>presence_person_new</name>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <param>
          <type>time_t</type>
          <declname>timestamp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="189" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="189" bodyend="200"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a9c05ff6a773917add2178daf1e4a2462" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_person_delete</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>presence_person_delete</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="202" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="202" bodyend="213"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a1b0f05876b8b87d610a4abac03f07b7e" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_person_add_activities_note</definition>
        <argsstring>(LinphonePresencePerson *person, LinphonePresenceNote *note)</argsstring>
        <name>presence_person_add_activities_note</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="215" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="215" bodyend="217"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a3b2ff75505a0e6e6c2ddd6b80aae37d0" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_person_add_note</definition>
        <argsstring>(LinphonePresencePerson *person, LinphonePresenceNote *note)</argsstring>
        <name>presence_person_add_note</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="219" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="219" bodyend="221"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a523af1c801e8db9906675009f8a31f4e" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_model_add_person</definition>
        <argsstring>(LinphonePresenceModel *model, LinphonePresencePerson *person)</argsstring>
        <name>presence_model_add_person</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="223" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="223" bodyend="225"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ac57ea19a5cd0e98dfd8670b34ed8dd5f" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_model_add_note</definition>
        <argsstring>(LinphonePresenceModel *model, LinphonePresenceNote *note)</argsstring>
        <name>presence_model_add_note</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="227" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="227" bodyend="229"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ab7101f808c24068122d9de2ec606616b" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_model_find_open_basic_status</definition>
        <argsstring>(LinphonePresenceService *service, LinphonePresenceBasicStatus *status)</argsstring>
        <name>presence_model_find_open_basic_status</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref> *</type>
          <declname>status</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="231" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="231" bodyend="235"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a2eaf7a7149622473c82fb0541f253d7a" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_model_delete</definition>
        <argsstring>(LinphonePresenceModel *model)</argsstring>
        <name>presence_model_delete</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="237" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="237" bodyend="247"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga1d18d53dc6742c071b9a33d76761112b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_presence_model_new_with_activity</definition>
        <argsstring>(LinphonePresenceActivityType acttype, const char *description)</argsstring>
        <name>linphone_presence_model_new_with_activity</name>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>activity</declname>
          <defname>acttype</defname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Creates a presence model specifying an activity. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The activity to set for the created presence model. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity (mainly useful for the &apos;other&apos; activity). Set it to NULL to not add a description. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created presence model, or NULL if an error occured. </para></simplesect>
<simplesect kind="see"><para><ref refid="group__buddy__list_1gaafdc5ae622acaadbf1e58415756d9fa3" kindref="member">linphone_presence_model_new</ref> </para></simplesect>
<simplesect kind="see"><para><ref refid="group__buddy__list_1ga37aa5cf371ba6cb116d92a2517d44fff" kindref="member">linphone_presence_model_new_with_activity_and_note</ref></para></simplesect>
The created presence model has the activity specified in the parameters. </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="255" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="255" bodyend="261"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga37aa5cf371ba6cb116d92a2517d44fff" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_presence_model_new_with_activity_and_note</definition>
        <argsstring>(LinphonePresenceActivityType acttype, const char *description, const char *note, const char *lang)</argsstring>
        <name>linphone_presence_model_new_with_activity_and_note</name>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>activity</declname>
          <defname>acttype</defname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>note</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Creates a presence model specifying an activity and adding a note. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The activity to set for the created presence model. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity (mainly useful for the &apos;other&apos; activity). Set it to NULL to not add a description. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional note giving additional information about the contact presence. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">lang</parametername>
</parameternamelist>
<parameterdescription>
<para>The language the note is written in. It can be set to NULL in order to not specify the language of the note. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created presence model, or NULL if an error occured. </para></simplesect>
<simplesect kind="see"><para><ref refid="group__buddy__list_1ga1d18d53dc6742c071b9a33d76761112b" kindref="member">linphone_presence_model_new_with_activity</ref> </para></simplesect>
<simplesect kind="see"><para><ref refid="group__buddy__list_1ga37aa5cf371ba6cb116d92a2517d44fff" kindref="member">linphone_presence_model_new_with_activity_and_note</ref></para></simplesect>
The created presence model has the activity and the note specified in the parameters. </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="263" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="263" bodyend="270"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga396ad42678b4c876ac7b1824782d2942" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
        <definition>LinphonePresenceBasicStatus linphone_presence_model_get_basic_status</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_basic_status</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the basic status of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the basic status from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref> of the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object given as parameter. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="273" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="273" bodyend="279"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaf4976a640b82b73f33e9cbd2f50ba380" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_set_basic_status</definition>
        <argsstring>(LinphonePresenceModel *model, LinphonePresenceBasicStatus basic_status)</argsstring>
        <name>linphone_presence_model_set_basic_status</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
          <declname>basic_status</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the basic status of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to set the basic status. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">basic_status</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref> to set for the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="281" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="281" bodyend="294"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1af7016f3d6e8914247ac9bf86c46fdc3f" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_service_find_newer_timestamp</definition>
        <argsstring>(LinphonePresenceService *service, time_t *timestamp)</argsstring>
        <name>presence_service_find_newer_timestamp</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>time_t *</type>
          <declname>timestamp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="296" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="296" bodyend="299"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1af3532462932c1b2533b7330deb0bdfdd" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_person_find_newer_timestamp</definition>
        <argsstring>(LinphonePresencePerson *person, time_t *timestamp)</argsstring>
        <name>presence_person_find_newer_timestamp</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>time_t *</type>
          <declname>timestamp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="301" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="301" bodyend="304"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga804edf09dcffe5528d98042e7e84ac30" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>time_t</type>
        <definition>time_t linphone_presence_model_get_timestamp</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_timestamp</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the timestamp of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the timestamp from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The timestamp of the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object or -1 on error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="306" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="306" bodyend="316"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a5000dac24a2be1e93408f30a26039400" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_model_find_contact</definition>
        <argsstring>(LinphonePresenceService *service, char **contact)</argsstring>
        <name>presence_model_find_contact</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>char **</type>
          <declname>contact</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="318" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="318" bodyend="321"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga9be1bde36d7437367f6f6fb2765b23ea" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>char *</type>
        <definition>char* linphone_presence_model_get_contact</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_contact</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the contact of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the contact from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a dynamically allocated string containing the contact, or NULL if no contact is found.</para></simplesect>
The returned string is to be freed by calling ms_free(). </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="323" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="323" bodyend="328"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad77b4bec03ea80eaed213d9e0a23c8a0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_set_contact</definition>
        <argsstring>(LinphonePresenceModel *model, const char *contact)</argsstring>
        <name>linphone_presence_model_set_contact</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>contact</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the contact of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to set the contact. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">contact</parametername>
</parameternamelist>
<parameterdescription>
<para>The contact string to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="330" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="330" bodyend="342"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a3a333793e3e8b20aa4704926075a244a" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_model_count_activities</definition>
        <argsstring>(const LinphonePresencePerson *person, unsigned int *nb)</argsstring>
        <name>presence_model_count_activities</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>unsigned int *</type>
          <declname>nb</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="344" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="344" bodyend="346"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ada861e242f034a8c20e3456af2fcb54b" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void presence_model_get_activity</definition>
        <argsstring>(const LinphonePresencePerson *person, struct _get_activity_st *st)</argsstring>
        <name>presence_model_get_activity</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>struct _get_activity_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="354" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="354" bodyend="361"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gae44a7723cc5843954981878e0ff654fd" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
        <definition>LinphonePresenceActivity* linphone_presence_model_get_activity</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_activity</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the first activity of a presence model (there is usually only one). <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the activity from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="363" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="363" bodyend="365"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga24d62429a3d66ead56bc3e30b6705bb6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_set_activity</definition>
        <argsstring>(LinphonePresenceModel *model, LinphonePresenceActivityType acttype, const char *description)</argsstring>
        <name>linphone_presence_model_set_activity</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>activity</declname>
          <defname>acttype</defname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the activity of a presence model (limits to only one activity). <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to set the activity. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref> to set for the model. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity to set for the model. Can be NULL if no additional description is to be added. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error.</para></simplesect>
WARNING: This function will modify the basic status of the model according to the activity being set. If you don&apos;t want the basic status to be modified automatically, you can use the combination of <ref refid="group__buddy__list_1gaf4976a640b82b73f33e9cbd2f50ba380" kindref="member">linphone_presence_model_set_basic_status()</ref>, <ref refid="group__buddy__list_1gacb675e95048bb879a2bda9278087a219" kindref="member">linphone_presence_model_clear_activities()</ref> and <ref refid="group__buddy__list_1ga97a070251ca232a6eabe9f31e01f7086" kindref="member">linphone_presence_model_add_activity()</ref>. </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="367" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="367" bodyend="394"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga1a7e31c35f5ed5e87e545d24d7458d45" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_presence_model_get_nb_activities</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_nb_activities</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the number of activities included in the presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the number of activities from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The number of activities included in the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="396" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="396" bodyend="400"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga7c70ea5f1e8d0f903b8313415494ec02" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
        <definition>LinphonePresenceActivity* linphone_presence_model_get_nth_activity</definition>
        <argsstring>(const LinphonePresenceModel *model, unsigned int idx)</argsstring>
        <name>linphone_presence_model_get_nth_activity</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the nth activity of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the activity from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">idx</parametername>
</parameternamelist>
<parameterdescription>
<para>The index of the activity to get (the first activity having the index 0). </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="402" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="402" bodyend="413"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga97a070251ca232a6eabe9f31e01f7086" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_add_activity</definition>
        <argsstring>(LinphonePresenceModel *model, LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_model_add_activity</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds an activity to a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to add an activity. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object to add to the model. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="415" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="415" bodyend="437"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gacb675e95048bb879a2bda9278087a219" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_clear_activities</definition>
        <argsstring>(LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_clear_activities</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the activities of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to clear the activities. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="439" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="439" bodyend="444"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1afbc0aff39e936e7bd4f49e8201554196" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>static LinphonePresenceNote* find_presence_note_in_list</definition>
        <argsstring>(MSList *list, const char *lang)</argsstring>
        <name>find_presence_note_in_list</name>
        <param>
          <type>MSList *</type>
          <declname>list</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="451" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="451" bodyend="470"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a2e9b694989949a2f93d96d46f634ea38" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void find_presence_person_note</definition>
        <argsstring>(LinphonePresencePerson *person, struct _find_note_st *st)</argsstring>
        <name>find_presence_person_note</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>struct _find_note_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="472" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="472" bodyend="479"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a665bbd0f4a72e271ad3fcd54fad5ca76" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void find_presence_service_note</definition>
        <argsstring>(LinphonePresenceService *service, struct _find_note_st *st)</argsstring>
        <name>find_presence_service_note</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>struct _find_note_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="481" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="481" bodyend="483"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ac0ba750026eaca40ce61f65a207002fa" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>static LinphonePresenceNote* get_first_presence_note_in_list</definition>
        <argsstring>(MSList *list)</argsstring>
        <name>get_first_presence_note_in_list</name>
        <param>
          <type>MSList *</type>
          <declname>list</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="485" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="485" bodyend="487"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a536cb650230f683eda765c8499e38c51" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void get_first_presence_person_note</definition>
        <argsstring>(LinphonePresencePerson *person, struct _find_note_st *st)</argsstring>
        <name>get_first_presence_person_note</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>struct _find_note_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="489" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="489" bodyend="493"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a5de86cb0f4ac72f982276fd269407e57" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void get_first_presence_service_note</definition>
        <argsstring>(LinphonePresenceService *service, struct _find_note_st *st)</argsstring>
        <name>get_first_presence_service_note</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>struct _find_note_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="495" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="495" bodyend="497"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga1e1acbdf3506f61c264b2ba1aaaacd4e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_presence_model_get_note</definition>
        <argsstring>(const LinphonePresenceModel *model, const char *lang)</argsstring>
        <name>linphone_presence_model_get_note</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the first note of a presence model (there is usually only one). <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the note from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">lang</parametername>
</parameternamelist>
<parameterdescription>
<para>The language of the note to get. Can be NULL to get a note that has no language specified or to get the first note whatever language it is written into. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="499" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="499" bodyend="541"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga0fc1ede7cb16366bf4faf8605db69f27" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_add_note</definition>
        <argsstring>(LinphonePresenceModel *model, const char *note_content, const char *lang)</argsstring>
        <name>linphone_presence_model_add_note</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>note_content</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds a note to a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to add a note to. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">note_content</parametername>
</parameternamelist>
<parameterdescription>
<para>The note to be added to the presence model. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">lang</parametername>
</parameternamelist>
<parameterdescription>
<para>The language of the note to be added. Can be NULL if no language is to be specified for the note. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error.</para></simplesect>
Only one note for each language can be set, so e.g. setting a note for the &apos;fr&apos; language if there is only one will replace the existing one. </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="543" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="543" bodyend="572"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a6cf7ce4d2c4bc91888af43be56dc3306" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void clear_presence_person_notes</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>clear_presence_person_notes</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="574" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="574" bodyend="581"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a04d5353f24b527c914921d24ef16be1f" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void clear_presence_service_notes</definition>
        <argsstring>(LinphonePresenceService *service)</argsstring>
        <name>clear_presence_service_notes</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="583" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="583" bodyend="587"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad23d4cfb9b5964028dcae0e09a46c644" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_clear_notes</definition>
        <argsstring>(LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_clear_notes</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears all the notes of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> for which to clear notes. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="589" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="589" bodyend="600"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaafdc5ae622acaadbf1e58415756d9fa3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_presence_model_new</definition>
        <argsstring>(void)</argsstring>
        <name>linphone_presence_model_new</name>
        <param>
          <type>void</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Creates a default presence model. <simplesect kind="return"><para>The created presence model, NULL on error. </para></simplesect>
<simplesect kind="see"><para><ref refid="group__buddy__list_1ga1d18d53dc6742c071b9a33d76761112b" kindref="member">linphone_presence_model_new_with_activity</ref> </para></simplesect>
<simplesect kind="see"><para><ref refid="group__buddy__list_1ga37aa5cf371ba6cb116d92a2517d44fff" kindref="member">linphone_presence_model_new_with_activity_and_note</ref></para></simplesect>
The created presence model is considered &apos;offline&apos;. </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="606" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="606" bodyend="610"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad3e5542b078b0ecbe16a52dae48d1c9e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_presence_model_get_nb_services</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_nb_services</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the number of services included in the presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the number of services from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The number of services included in the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="612" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="612" bodyend="614"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga89b3ce38a7475daa12fa98fae61a6ccf" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
        <definition>LinphonePresenceService* linphone_presence_model_get_nth_service</definition>
        <argsstring>(const LinphonePresenceModel *model, unsigned int idx)</argsstring>
        <name>linphone_presence_model_get_nth_service</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the nth service of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the service from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">idx</parametername>
</parameternamelist>
<parameterdescription>
<para>The index of the service to get (the first service having the index 0). </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="616" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="616" bodyend="621"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga2335d062c90a068b893ea9830e3d13b0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_add_service</definition>
        <argsstring>(LinphonePresenceModel *model, LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_model_add_service</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds a service to a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to add a service. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object to add to the model. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="623" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="623" bodyend="627"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga04999d9e1918f1032995d4fd7e32dc1d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_clear_services</definition>
        <argsstring>(LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_clear_services</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the services of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to clear the services. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="629" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="629" bodyend="636"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga4ee2f72181d54d196dc585e0b4718fc9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_presence_model_get_nb_persons</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_nb_persons</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the number of persons included in the presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the number of persons from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The number of persons included in the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="638" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="638" bodyend="640"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga76fb2167dcbf66e27136f541de239a35" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
        <definition>LinphonePresencePerson* linphone_presence_model_get_nth_person</definition>
        <argsstring>(const LinphonePresenceModel *model, unsigned int idx)</argsstring>
        <name>linphone_presence_model_get_nth_person</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the nth person of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object to get the person from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">idx</parametername>
</parameternamelist>
<parameterdescription>
<para>The index of the person to get (the first person having the index 0). </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="642" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="642" bodyend="647"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga1bb38c17dfde730fd76475b50534bf87" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_add_person</definition>
        <argsstring>(LinphonePresenceModel *model, LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_model_add_person</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds a person to a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to add a person. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to add to the model. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="649" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="649" bodyend="653"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gada0bb3a977d9a86132235c07d71e4c40" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_model_clear_persons</definition>
        <argsstring>(LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_clear_persons</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the persons of a presence model. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to clear the persons. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="655" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="655" bodyend="662"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gacbae5482f29072a109efc1a446aca529" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
        <definition>LinphonePresenceService* linphone_presence_service_new</definition>
        <argsstring>(const char *id, LinphonePresenceBasicStatus basic_status, const char *contact)</argsstring>
        <name>linphone_presence_service_new</name>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
          <declname>basic_status</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>contact</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Creates a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">id</parametername>
</parameternamelist>
<parameterdescription>
<para>The id of the presence service to be created. Can be NULL to generate it automatically. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">basic_status</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref> to set for the <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">contact</parametername>
</parameternamelist>
<parameterdescription>
<para>The contact string to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created presence service, NULL on error.</para></simplesect>
The created presence service has the basic status &apos;closed&apos;. </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="670" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="670" bodyend="682"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gae2826b6feb04ac8ff6b02698431f9ca7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>char *</type>
        <definition>char* linphone_presence_service_get_id</definition>
        <argsstring>(const LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_get_id</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the id of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object to get the id from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a dynamically allocated string containing the id, or NULL in case of error.</para></simplesect>
The returned string is to be freed by calling ms_free(). </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="684" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="684" bodyend="687"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaba3835eed0b42ac55fd4caf37ee67eaa" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_service_set_id</definition>
        <argsstring>(LinphonePresenceService *service, const char *id)</argsstring>
        <name>linphone_presence_service_set_id</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the id of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which to set the id. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">id</parametername>
</parameternamelist>
<parameterdescription>
<para>The id string to set. Can be NULL to generate it automatically. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="689" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="689" bodyend="698"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga38bd8f8e8fae6e2b02f6ea8bac4a296c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
        <definition>LinphonePresenceBasicStatus linphone_presence_service_get_basic_status</definition>
        <argsstring>(const LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_get_basic_status</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the basic status of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object to get the basic status from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref> of the <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object given as parameter. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="700" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="700" bodyend="703"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad06e643ca00c3763248cf66545b124fe" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_service_set_basic_status</definition>
        <argsstring>(LinphonePresenceService *service, LinphonePresenceBasicStatus basic_status)</argsstring>
        <name>linphone_presence_service_set_basic_status</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
          <declname>basic_status</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the basic status of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which to set the basic status. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">basic_status</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref> to set for the <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="705" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="705" bodyend="709"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga55b6c2037f50ad5b3cf09ca66f104a70" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>char *</type>
        <definition>char* linphone_presence_service_get_contact</definition>
        <argsstring>(const LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_get_contact</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the contact of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object to get the contact from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a dynamically allocated string containing the contact, or NULL if no contact is found.</para></simplesect>
The returned string is to be freed by calling ms_free(). </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="711" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="711" bodyend="714"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga7bf6a8e2ae11c778d4c469db1ae80917" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_service_set_contact</definition>
        <argsstring>(LinphonePresenceService *service, const char *contact)</argsstring>
        <name>linphone_presence_service_set_contact</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>contact</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the contact of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which to set the contact. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">contact</parametername>
</parameternamelist>
<parameterdescription>
<para>The contact string to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="716" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="716" bodyend="725"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga617f5e028bb247edb687a382a9e9a45a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_presence_service_get_nb_notes</definition>
        <argsstring>(const LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_get_nb_notes</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the number of notes included in the presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object to get the number of notes from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The number of notes included in the <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="727" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="727" bodyend="729"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga37b2cb26beeae9dbe76b8fb96c14c718" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_presence_service_get_nth_note</definition>
        <argsstring>(const LinphonePresenceService *service, unsigned int idx)</argsstring>
        <name>linphone_presence_service_get_nth_note</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the nth note of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object to get the note from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">idx</parametername>
</parameternamelist>
<parameterdescription>
<para>The index of the note to get (the first note having the index 0). </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="731" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="731" bodyend="736"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga44fddcae238b72375324c8f7c8ceee2c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_service_add_note</definition>
        <argsstring>(LinphonePresenceService *service, LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_service_add_note</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds a note to a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which to add a note. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object to add to the service. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="738" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="738" bodyend="742"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga79d316095dd5b80eb9980e9a9059ab91" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_service_clear_notes</definition>
        <argsstring>(LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_clear_notes</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the notes of a presence service. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which to clear the notes. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="744" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="744" bodyend="751"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaccc8c6acf008ab23615562f4ef2d611f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
        <definition>LinphonePresencePerson* linphone_presence_person_new</definition>
        <argsstring>(const char *id)</argsstring>
        <name>linphone_presence_person_new</name>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Creates a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">id</parametername>
</parameternamelist>
<parameterdescription>
<para>The id of the presence person to be created. Can be NULL to generate it automatically. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created presence person, NULL on error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="759" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="759" bodyend="761"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga46c62423dd60cc7ccef6f6978bce2b26" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>char *</type>
        <definition>char* linphone_presence_person_get_id</definition>
        <argsstring>(const LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_get_id</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the id of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to get the id from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a dynamically allocated string containing the id, or NULL in case of error.</para></simplesect>
The returned string is to be freed by calling ms_free(). </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="763" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="763" bodyend="766"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga265f171c2a87ad76da2d4bd5e1fb1710" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_person_set_id</definition>
        <argsstring>(LinphonePresencePerson *person, const char *id)</argsstring>
        <name>linphone_presence_person_set_id</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the id of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to set the id. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">id</parametername>
</parameternamelist>
<parameterdescription>
<para>The id string to set. Can be NULL to generate it automatically. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="768" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="768" bodyend="777"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gabef33b8fad7823e0166fa4db0cbbcaac" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_presence_person_get_nb_activities</definition>
        <argsstring>(const LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_get_nb_activities</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the number of activities included in the presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to get the number of activities from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The number of activities included in the <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="779" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="779" bodyend="782"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga09ebfa64023fd9fd4a430d59190195b5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
        <definition>LinphonePresenceActivity* linphone_presence_person_get_nth_activity</definition>
        <argsstring>(const LinphonePresencePerson *person, unsigned int idx)</argsstring>
        <name>linphone_presence_person_get_nth_activity</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the nth activity of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to get the activity from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">idx</parametername>
</parameternamelist>
<parameterdescription>
<para>The index of the activity to get (the first activity having the index 0). </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="784" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="784" bodyend="788"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga3124d8045fa76284d4d7011b587f2a96" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_person_add_activity</definition>
        <argsstring>(LinphonePresencePerson *person, LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_person_add_activity</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds an activity to a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to add an activity. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object to add to the person. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="790" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="790" bodyend="794"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga77ad33bc07d13ed2d37ea2041ccc12da" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_person_clear_activities</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_clear_activities</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the activities of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to clear the activities. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="796" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="796" bodyend="802"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaeb247eb73def4407f5865bb224140d0b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_presence_person_get_nb_notes</definition>
        <argsstring>(const LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_get_nb_notes</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the number of notes included in the presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to get the number of notes from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The number of notes included in the <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="804" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="804" bodyend="807"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga833950e12b2430a5a123b12e0a432a08" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_presence_person_get_nth_note</definition>
        <argsstring>(const LinphonePresencePerson *person, unsigned int idx)</argsstring>
        <name>linphone_presence_person_get_nth_note</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the nth note of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to get the note from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">idx</parametername>
</parameternamelist>
<parameterdescription>
<para>The index of the note to get (the first note having the index 0). </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="809" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="809" bodyend="813"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga01f9d37476e65230f7dc266f88dfceb5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_person_add_note</definition>
        <argsstring>(LinphonePresencePerson *person, LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_person_add_note</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds a note to a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to add a note. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object to add to the person. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="815" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="815" bodyend="819"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gae0bdf0c41048b272c3ccaece4ae851ae" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_person_clear_notes</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_clear_notes</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the notes of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to clear the notes. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="821" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="821" bodyend="827"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gac1315bc838eec7f0078a7cedaae6bd53" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>unsigned int</type>
        <definition>unsigned int linphone_presence_person_get_nb_activities_notes</definition>
        <argsstring>(const LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_get_nb_activities_notes</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the number of activities notes included in the presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to get the number of activities notes from. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The number of activities notes included in the <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="829" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="829" bodyend="832"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga1db7cdf2487d8b71a0ed25a2f71e604c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_presence_person_get_nth_activities_note</definition>
        <argsstring>(const LinphonePresencePerson *person, unsigned int idx)</argsstring>
        <name>linphone_presence_person_get_nth_activities_note</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the nth activities note of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object to get the activities note from. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">idx</parametername>
</parameternamelist>
<parameterdescription>
<para>The index of the activities note to get (the first note having the index 0). </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to a <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object if successful, NULL otherwise. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="834" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="834" bodyend="838"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga784a635d79a3eeec393db647f638089f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_person_add_activities_note</definition>
        <argsstring>(LinphonePresencePerson *person, LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_person_add_activities_note</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Adds an activities note to a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to add an activities note. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object to add to the person. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="840" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="840" bodyend="844"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gae7c98db1d7cfc7bb133f256c6ef0045e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_person_clear_activities_notes</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_clear_activities_notes</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the activities notes of a presence person. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to clear the activities notes. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="846" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="846" bodyend="852"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a7ec933ad7208fdae95318d09bcdcdda5" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int activity_name_to_presence_activity_type</definition>
        <argsstring>(const char *name, LinphonePresenceActivityType *acttype)</argsstring>
        <name>activity_name_to_presence_activity_type</name>
        <param>
          <type>const char *</type>
          <declname>name</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref> *</type>
          <declname>acttype</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="894" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="894" bodyend="903"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a5c8172db5a75f9dec4ecad0d14443dce" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>const char *</type>
        <definition>static const char* presence_activity_type_to_string</definition>
        <argsstring>(LinphonePresenceActivityType acttype)</argsstring>
        <name>presence_activity_type_to_string</name>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>acttype</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="905" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="905" bodyend="913"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga91719f76c70a140c0a4187c16945501f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
        <definition>LinphonePresenceActivity* linphone_presence_activity_new</definition>
        <argsstring>(LinphonePresenceActivityType acttype, const char *description)</argsstring>
        <name>linphone_presence_activity_new</name>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>acttype</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Creates a presence activity. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">acttype</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref> to set for the activity. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created presence activity, NULL on error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="915" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="915" bodyend="923"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga5b72ce9ec921a464eb7840ac35cee278" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>char *</type>
        <definition>char* linphone_presence_activity_to_string</definition>
        <argsstring>(const LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_activity_to_string</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the string representation of a presence activity. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object for which to get a string representation. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer a dynamically allocated string representing the given activity.</para></simplesect>
The returned string is to be freed by calling ms_free(). </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="925" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="925" bodyend="940"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga13b83f3d94062696507a975313fc8e1c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
        <definition>LinphonePresenceActivityType linphone_presence_activity_get_type</definition>
        <argsstring>(const LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_activity_get_type</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the activity type of a presence activity. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> for which to get the type. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref> of the activity. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="942" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="942" bodyend="946"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga3983b5c4be3e20d13b85c6778a407395" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_activity_set_type</definition>
        <argsstring>(LinphonePresenceActivity *activity, LinphonePresenceActivityType acttype)</argsstring>
        <name>linphone_presence_activity_set_type</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>acttype</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the type of activity of a presence activity. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> for which to set for the activity type. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">acttype</parametername>
</parameternamelist>
<parameterdescription>
<para>The activity type to set for the activity. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="948" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="948" bodyend="952"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga1480a5fc9dbb84a1e45c6b5a11333408" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>const char *</type>
        <definition>const char* linphone_presence_activity_get_description</definition>
        <argsstring>(const LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_activity_get_description</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the description of a presence activity. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> for which to get the description. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the description string of the presence activity, or NULL if no description is specified. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="954" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="954" bodyend="958"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga6e8bbe8384a016e226b5cc985c0e1272" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_activity_set_description</definition>
        <argsstring>(LinphonePresenceActivity *activity, const char *description)</argsstring>
        <name>linphone_presence_activity_set_description</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the description of a presence activity. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object for which to set the description. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity. Can be NULL if no additional description is to be added. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="960" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="960" bodyend="969"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_presence_note_new</definition>
        <argsstring>(const char *content, const char *lang)</argsstring>
        <name>linphone_presence_note_new</name>
        <param>
          <type>const char *</type>
          <declname>content</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Creates a presence note. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">content</parametername>
</parameternamelist>
<parameterdescription>
<para>The content of the note to be created. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">lang</parametername>
</parameternamelist>
<parameterdescription>
<para>The language of the note to be created. Can be NULL if no language is to be specified for the note. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created presence note, NULL on error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="977" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="977" bodyend="988"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gab5b90424e91ccb22dbdb4291e446d148" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>const char *</type>
        <definition>const char* linphone_presence_note_get_content</definition>
        <argsstring>(const LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_note_get_content</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the content of a presence note. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> for which to get the content. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the content of the presence note. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="990" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="990" bodyend="994"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gae6b9a8cd498091b54f541974ea2b73ec" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_note_set_content</definition>
        <argsstring>(LinphonePresenceNote *note, const char *content)</argsstring>
        <name>linphone_presence_note_set_content</name>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>content</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the content of a presence note. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object for which to set the content. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">content</parametername>
</parameternamelist>
<parameterdescription>
<para>The content of the note. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="996" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="996" bodyend="1003"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga085ddafc5805d194275afca727822c9b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>const char *</type>
        <definition>const char* linphone_presence_note_get_lang</definition>
        <argsstring>(const LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_note_get_lang</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the language of a presence note. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> for which to get the language. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the language string of the presence note, or NULL if no language is specified. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1005" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1005" bodyend="1009"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gae5ca86139602e0bbdbd9fd078bebfe0a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int linphone_presence_note_set_lang</definition>
        <argsstring>(LinphonePresenceNote *note, const char *lang)</argsstring>
        <name>linphone_presence_note_set_lang</name>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the language of a presence note. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object for which to set the language. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">lang</parametername>
</parameternamelist>
<parameterdescription>
<para>The language of the note. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0 if successful, a value &lt; 0 in case of error. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1011" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1011" bodyend="1020"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga4717f8bfb975105b8c970bd0d18d19b8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_presence_model_ref</definition>
        <argsstring>(LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_ref</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Increase the reference count of the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which the reference count is to be increased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object with the increased reference count. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1028" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1028" bodyend="1031"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga8c6c14fe45f6941149ed3eb759db9a23" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_presence_model_unref</definition>
        <argsstring>(LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_unref</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Decrease the reference count of the <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object and destroy it if it reaches 0. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which the reference count is to be decreased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object if the reference count is still positive, NULL if the object has been destroyed. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1033" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1033" bodyend="1040"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga9f910786ce8e33b6ad4fbd36aaed8ed6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_presence_model_set_user_data</definition>
        <argsstring>(LinphonePresenceModel *model, void *user_data)</argsstring>
        <name>linphone_presence_model_set_user_data</name>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <param>
          <type>void *</type>
          <declname>user_data</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the user data of a <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to set the user data. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">user_data</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the user data to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1042" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1042" bodyend="1044"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad61eba499ed7dd69d26899ae29da1e96" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void *</type>
        <definition>void* linphone_presence_model_get_user_data</definition>
        <argsstring>(const LinphonePresenceModel *model)</argsstring>
        <name>linphone_presence_model_get_user_data</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the user data of a <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">model</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object for which to get the user data. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the user data. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1046" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1046" bodyend="1048"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gae4189ee0d69b19b038edf424d9093423" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
        <definition>LinphonePresenceService* linphone_presence_service_ref</definition>
        <argsstring>(LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_ref</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Increase the reference count of the <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which the reference count is to be increased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object with the increased reference count. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1050" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1050" bodyend="1053"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga57cc2e55255964551916991ba99a95d1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
        <definition>LinphonePresenceService* linphone_presence_service_unref</definition>
        <argsstring>(LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_unref</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Decrease the reference count of the <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object and destroy it if it reaches 0. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which the reference count is to be decreased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object if the reference count is still positive, NULL if the object has been destroyed. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1055" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1055" bodyend="1062"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaa203c02f77f2c26954d9cb5f70f9bf0d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_presence_service_set_user_data</definition>
        <argsstring>(LinphonePresenceService *service, void *user_data)</argsstring>
        <name>linphone_presence_service_set_user_data</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>void *</type>
          <declname>user_data</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the user data of a <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which to set the user data. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">user_data</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the user data to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1064" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1064" bodyend="1066"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga396c89780d741e99840ae43278337eb3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void *</type>
        <definition>void* linphone_presence_service_get_user_data</definition>
        <argsstring>(const LinphonePresenceService *service)</argsstring>
        <name>linphone_presence_service_get_user_data</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the user data of a <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">service</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object for which to get the user data. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the user data. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1068" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1068" bodyend="1070"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad55abd011e2aaedacddf12f630a68fa2" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
        <definition>LinphonePresencePerson* linphone_presence_person_ref</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_ref</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Increase the reference count of the <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which the reference count is to be increased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object with the increased reference count. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1072" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1072" bodyend="1075"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gacf352cdad5877cf9cbb1e910eaf8b626" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
        <definition>LinphonePresencePerson* linphone_presence_person_unref</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_unref</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Decrease the reference count of the <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object and destroy it if it reaches 0. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which the reference count is to be decreased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object if the reference count is still positive, NULL if the object has been destroyed. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1077" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1077" bodyend="1084"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga4a8574d8e0fb4cb18356abe62fae4908" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_presence_person_set_user_data</definition>
        <argsstring>(LinphonePresencePerson *person, void *user_data)</argsstring>
        <name>linphone_presence_person_set_user_data</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>void *</type>
          <declname>user_data</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the user data of a <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to set the user data. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">user_data</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the user data to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1086" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1086" bodyend="1088"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gab618172025e16909ecb681f2fe1a9602" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void *</type>
        <definition>void* linphone_presence_person_get_user_data</definition>
        <argsstring>(const LinphonePresencePerson *person)</argsstring>
        <name>linphone_presence_person_get_user_data</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the user data of a <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">person</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object for which to get the user data. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the user data. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1090" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1090" bodyend="1092"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga0d394e0df2d9b43dec1dccefa9e83ca0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
        <definition>LinphonePresenceActivity* linphone_presence_activity_ref</definition>
        <argsstring>(LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_activity_ref</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Increase the reference count of the <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object for which the reference count is to be increased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object with the increased reference count. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1094" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1094" bodyend="1097"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gac79612320aa2306460c1000657ea3261" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
        <definition>LinphonePresenceActivity* linphone_presence_activity_unref</definition>
        <argsstring>(LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_activity_unref</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Decrease the reference count of the <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object and destroy it if it reaches 0. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object for which the reference count is to be decreased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object if the reference count is still positive, NULL if the object has been destroyed. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1099" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1099" bodyend="1106"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga3b863746ebcc2201cebaad0eb6c4dca3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_presence_activity_set_user_data</definition>
        <argsstring>(LinphonePresenceActivity *activity, void *user_data)</argsstring>
        <name>linphone_presence_activity_set_user_data</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <param>
          <type>void *</type>
          <declname>user_data</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the user data of a <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object for which to set the user data. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">user_data</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the user data to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1108" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1108" bodyend="1110"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga09054715cd2743c1474fe40cbf6c6080" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void *</type>
        <definition>void* linphone_presence_activity_get_user_data</definition>
        <argsstring>(const LinphonePresenceActivity *activity)</argsstring>
        <name>linphone_presence_activity_get_user_data</name>
        <param>
          <type>const <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the user data of a <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">activity</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object for which to get the user data. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the user data. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1112" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1112" bodyend="1114"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga389302f58eace7638964db50381534c1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_presence_note_ref</definition>
        <argsstring>(LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_note_ref</name>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Increase the reference count of the <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object for which the reference count is to be increased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object with the increased reference count. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1116" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1116" bodyend="1119"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_presence_note_unref</definition>
        <argsstring>(LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_note_unref</name>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Decrease the reference count of the <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object and destroy it if it reaches 0. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object for which the reference count is to be decreased. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object if the reference count is still positive, NULL if the object has been destroyed. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1121" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1121" bodyend="1128"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga2e75d324522b43e4abe40bba2ff709df" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_presence_note_set_user_data</definition>
        <argsstring>(LinphonePresenceNote *note, void *user_data)</argsstring>
        <name>linphone_presence_note_set_user_data</name>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <param>
          <type>void *</type>
          <declname>user_data</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sets the user data of a <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object for which to set the user data. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">user_data</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to the user data to set. </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1130" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1130" bodyend="1132"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga4908079aa3b46215873ca81b38431b0f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void *</type>
        <definition>void* linphone_presence_note_get_user_data</definition>
        <argsstring>(const LinphonePresenceNote *note)</argsstring>
        <name>linphone_presence_note_get_user_data</name>
        <param>
          <type>const <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Gets the user data of a <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object for which to get the user data. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A pointer to the user data. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1134" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1134" bodyend="1136"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1af19066cfb7ee505ea3e2b301644f5d6e" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int process_pidf_xml_presence_service_notes</definition>
        <argsstring>(xmlparsing_context_t *xml_ctx, LinphonePresenceService *service, unsigned int service_idx)</argsstring>
        <name>process_pidf_xml_presence_service_notes</name>
        <param>
          <type>xmlparsing_context_t *</type>
          <declname>xml_ctx</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>service_idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1146" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1146" bodyend="1173"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a617012393fb57b0620cb0db6532e8c80" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int process_pidf_xml_presence_services</definition>
        <argsstring>(xmlparsing_context_t *xml_ctx, LinphonePresenceModel *model)</argsstring>
        <name>process_pidf_xml_presence_services</name>
        <param>
          <type>xmlparsing_context_t *</type>
          <declname>xml_ctx</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1175" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1175" bodyend="1228"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1aebcf5ca99d3d1e77e02bf7ea71c08f96" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>bool_t</type>
        <definition>static bool_t is_valid_activity_name</definition>
        <argsstring>(const char *name)</argsstring>
        <name>is_valid_activity_name</name>
        <param>
          <type>const char *</type>
          <declname>name</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1230" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1230" bodyend="1238"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a09bb839971faa5fc7b2afa34b41e2cc1" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int process_pidf_xml_presence_person_activities</definition>
        <argsstring>(xmlparsing_context_t *xml_ctx, LinphonePresencePerson *person, unsigned int person_idx)</argsstring>
        <name>process_pidf_xml_presence_person_activities</name>
        <param>
          <type>xmlparsing_context_t *</type>
          <declname>xml_ctx</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>person_idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1240" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1240" bodyend="1281"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a537e26b462c1c9bb96b51bd70cfc5c20" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int process_pidf_xml_presence_person_notes</definition>
        <argsstring>(xmlparsing_context_t *xml_ctx, LinphonePresencePerson *person, unsigned int person_idx)</argsstring>
        <name>process_pidf_xml_presence_person_notes</name>
        <param>
          <type>xmlparsing_context_t *</type>
          <declname>xml_ctx</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>unsigned int</type>
          <declname>person_idx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1283" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1283" bodyend="1328"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a90e35937b490a37edc7310cfb8c44f91" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int process_pidf_xml_presence_persons</definition>
        <argsstring>(xmlparsing_context_t *xml_ctx, LinphonePresenceModel *model)</argsstring>
        <name>process_pidf_xml_presence_persons</name>
        <param>
          <type>xmlparsing_context_t *</type>
          <declname>xml_ctx</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1330" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1330" bodyend="1375"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1acd7094cadf0dc135242ef831ae17eb7a" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int process_pidf_xml_presence_notes</definition>
        <argsstring>(xmlparsing_context_t *xml_ctx, LinphonePresenceModel *model)</argsstring>
        <name>process_pidf_xml_presence_notes</name>
        <param>
          <type>xmlparsing_context_t *</type>
          <declname>xml_ctx</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1377" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1377" bodyend="1403"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a15c410f5d7dc534968e665aec71f97bb" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>static LinphonePresenceModel* process_pidf_xml_presence_notification</definition>
        <argsstring>(xmlparsing_context_t *xml_ctx)</argsstring>
        <name>process_pidf_xml_presence_notification</name>
        <param>
          <type>xmlparsing_context_t *</type>
          <declname>xml_ctx</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1405" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1405" bodyend="1430"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1af8fde23d54847f9737ec86f197697495" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_core_add_subscriber</definition>
        <argsstring>(LinphoneCore *lc, const char *subscriber, SalOp *op)</argsstring>
        <name>linphone_core_add_subscriber</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>subscriber</declname>
        </param>
        <param>
          <type>SalOp *</type>
          <declname>op</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1435" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1435" bodyend="1447"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga4d308687e043ea48e2ae83a3679857fc" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_core_reject_subscriber</definition>
        <argsstring>(LinphoneCore *lc, LinphoneFriend *lf)</argsstring>
        <name>linphone_core_reject_subscriber</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref> *</type>
          <declname>lf</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Black list a friend. same as <ref refid="group__buddy__list_1ga9ab0c9222edcc0a8e25fb068aee88bc0" kindref="member">linphone_friend_set_inc_subscribe_policy()</ref> with <ref refid="group__buddy__list_1gga81effcfcab907fd8530e53ca5b0bc10aa94cf7013f58a5ad7ec8859afc3da9d72" kindref="member">LinphoneSPDeny</ref> policy; <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>lf</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref> to add </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1449" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1449" bodyend="1451"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaa76897f8107633a3d05746c45a957817" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_core_notify_all_friends</definition>
        <argsstring>(LinphoneCore *lc, LinphonePresenceModel *presence)</argsstring>
        <name>linphone_core_notify_all_friends</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
          <declname>presence</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Notify all friends that have subscribed <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>presence</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> to notify </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1453" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1453" bodyend="1465"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a06c70d67ca8cdcc5cb1ff3f715785344" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_subscription_new</definition>
        <argsstring>(LinphoneCore *lc, SalOp *op, const char *from)</argsstring>
        <name>linphone_subscription_new</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type>SalOp *</type>
          <declname>op</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>from</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1467" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1467" bodyend="1512"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a91417170ba497db0c31458099f893838" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_notify_parse_presence</definition>
        <argsstring>(SalOp *op, const char *content_type, const char *content_subtype, const char *body, SalPresenceModel **result)</argsstring>
        <name>linphone_notify_parse_presence</name>
        <param>
          <type>SalOp *</type>
          <declname>op</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>content_type</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>content_subtype</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>body</declname>
        </param>
        <param>
          <type>SalPresenceModel **</type>
          <declname>result</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1514" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1514" bodyend="1559"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a27fc70f08732245206c47e2f4b47844b" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int write_xml_presence_note</definition>
        <argsstring>(xmlTextWriterPtr writer, LinphonePresenceNote *note, const char *ns)</argsstring>
        <name>write_xml_presence_note</name>
        <param>
          <type>xmlTextWriterPtr</type>
          <declname>writer</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>ns</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1583" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1583" bodyend="1600"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a0b1af7c6684f26d4a747df85342696e8" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void write_xml_presence_note_obj</definition>
        <argsstring>(LinphonePresenceNote *note, struct _presence_note_obj_st *st)</argsstring>
        <name>write_xml_presence_note_obj</name>
        <param>
          <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
          <declname>note</declname>
        </param>
        <param>
          <type>struct _presence_note_obj_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1602" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1602" bodyend="1605"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a3aa20bf08c9bbceb595aea5425dc1c3c" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int write_xml_presence_timestamp</definition>
        <argsstring>(xmlTextWriterPtr writer, time_t timestamp)</argsstring>
        <name>write_xml_presence_timestamp</name>
        <param>
          <type>xmlTextWriterPtr</type>
          <declname>writer</declname>
        </param>
        <param>
          <type>time_t</type>
          <declname>timestamp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1607" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1607" bodyend="1613"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1acff7ba0f5a7d8c1bdf9f9d65fae777c7" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int write_xml_presence_service</definition>
        <argsstring>(xmlTextWriterPtr writer, LinphonePresenceService *service, const char *contact)</argsstring>
        <name>write_xml_presence_service</name>
        <param>
          <type>xmlTextWriterPtr</type>
          <declname>writer</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>contact</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1615" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1615" bodyend="1674"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a573e001c85405680b4b585f00b839c74" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>bool_t</type>
        <definition>static bool_t is_valid_activity</definition>
        <argsstring>(LinphonePresenceActivity *activity)</argsstring>
        <name>is_valid_activity</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1676" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1676" bodyend="1680"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a60497470618f773ac93ff93425dfc501" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int write_xml_presence_activity</definition>
        <argsstring>(xmlTextWriterPtr writer, LinphonePresenceActivity *activity)</argsstring>
        <name>write_xml_presence_activity</name>
        <param>
          <type>xmlTextWriterPtr</type>
          <declname>writer</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1682" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1682" bodyend="1696"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ad3b5fe15192aa731259e2c729eafa7c9" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void write_xml_presence_activity_obj</definition>
        <argsstring>(LinphonePresenceActivity *activity, struct _presence_activity_obj_st *st)</argsstring>
        <name>write_xml_presence_activity_obj</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <param>
          <type>struct _presence_activity_obj_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1698" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1698" bodyend="1701"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a50f4d9250524ba9850d5fb83dc4a0349" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void person_has_valid_activity</definition>
        <argsstring>(LinphonePresenceActivity *activity, bool_t *has_valid_activities)</argsstring>
        <name>person_has_valid_activity</name>
        <param>
          <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
          <declname>activity</declname>
        </param>
        <param>
          <type>bool_t *</type>
          <declname>has_valid_activities</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1703" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1703" bodyend="1705"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ad7ecea6d4e46fdd24dbecd9c5006fd0a" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>bool_t</type>
        <definition>static bool_t person_has_valid_activities</definition>
        <argsstring>(LinphonePresencePerson *person)</argsstring>
        <name>person_has_valid_activities</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1707" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1707" bodyend="1711"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a0b748c12b343f34ae2bf891efcda93dd" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int write_xml_presence_person</definition>
        <argsstring>(xmlTextWriterPtr writer, LinphonePresencePerson *person)</argsstring>
        <name>write_xml_presence_person</name>
        <param>
          <type>xmlTextWriterPtr</type>
          <declname>writer</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1713" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1713" bodyend="1763"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1ab925d58c4d031ae009f1b3a3b8033abf" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void write_xml_presence_service_obj</definition>
        <argsstring>(LinphonePresenceService *service, struct _presence_service_obj_st *st)</argsstring>
        <name>write_xml_presence_service_obj</name>
        <param>
          <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
          <declname>service</declname>
        </param>
        <param>
          <type>struct _presence_service_obj_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1765" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1765" bodyend="1768"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1adac6cfc99280e4e708b9bd32f2b6e07d" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>static void write_xml_presence_person_obj</definition>
        <argsstring>(LinphonePresencePerson *person, struct _presence_person_obj_st *st)</argsstring>
        <name>write_xml_presence_person_obj</name>
        <param>
          <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
          <declname>person</declname>
        </param>
        <param>
          <type>struct _presence_person_obj_st *</type>
          <declname>st</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1770" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1770" bodyend="1773"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a59cab738b83cfcd0bff13e6c9058a8ae" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_notify_convert_presence_to_xml</definition>
        <argsstring>(SalOp *op, SalPresenceModel *presence, const char *contact, char **content)</argsstring>
        <name>linphone_notify_convert_presence_to_xml</name>
        <param>
          <type>SalOp *</type>
          <declname>op</declname>
        </param>
        <param>
          <type>SalPresenceModel *</type>
          <declname>presence</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>contact</declname>
        </param>
        <param>
          <type>char **</type>
          <declname>content</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1775" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1775" bodyend="1849"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a01f0481623a635528dfc518049cb28c1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_notify_recv</definition>
        <argsstring>(LinphoneCore *lc, SalOp *op, SalSubscribeStatus ss, SalPresenceModel *model)</argsstring>
        <name>linphone_notify_recv</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type>SalOp *</type>
          <declname>op</declname>
        </param>
        <param>
          <type>SalSubscribeStatus</type>
          <declname>ss</declname>
        </param>
        <param>
          <type>SalPresenceModel *</type>
          <declname>model</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1851" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1851" bodyend="1890"/>
      </memberdef>
      <memberdef kind="function" id="presence_8c_1a5dbc0826c9041a2c583c37d825d44820" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void linphone_subscription_closed</definition>
        <argsstring>(LinphoneCore *lc, SalOp *op)</argsstring>
        <name>linphone_subscription_closed</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type>SalOp *</type>
          <declname>op</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1892" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1892" bodyend="1901"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gad9775ac2054e82fec338371e4d448207" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> *</type>
        <definition>LinphonePresenceActivity* linphone_core_create_presence_activity</definition>
        <argsstring>(LinphoneCore *lc, LinphonePresenceActivityType acttype, const char *description)</argsstring>
        <name>linphone_core_create_presence_activity</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>acttype</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create a LinphonePresenceActivity with the given type and description. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">acttype</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref> to set for the activity. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created <ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1903" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1903" bodyend="1905"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga550b75894fe99af8d501a282b8b04d27" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_core_create_presence_model</definition>
        <argsstring>(LinphoneCore *lc)</argsstring>
        <name>linphone_core_create_presence_model</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create a default LinphonePresenceModel. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1907" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1907" bodyend="1909"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga041ba6122c573cc394b6ecd1e0c8b9f4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_core_create_presence_model_with_activity</definition>
        <argsstring>(LinphoneCore *lc, LinphonePresenceActivityType acttype, const char *description)</argsstring>
        <name>linphone_core_create_presence_model_with_activity</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>acttype</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create a LinphonePresenceModel with the given activity type and activity description. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">acttype</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref> to set for the activity of the created model. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1911" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1911" bodyend="1913"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gac0b163ea60535ceb06d5dcd63f942378" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> *</type>
        <definition>LinphonePresenceModel* linphone_core_create_presence_model_with_activity_and_note</definition>
        <argsstring>(LinphoneCore *lc, LinphonePresenceActivityType acttype, const char *description, const char *note, const char *lang)</argsstring>
        <name>linphone_core_create_presence_model_with_activity_and_note</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref></type>
          <declname>acttype</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>description</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>note</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create a LinphonePresenceModel with the given activity type, activity description, note content and note language. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">acttype</parametername>
</parameternamelist>
<parameterdescription>
<para>The <ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref> to set for the activity of the created model. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">description</parametername>
</parameternamelist>
<parameterdescription>
<para>An additional description of the activity to set for the activity. Can be NULL if no additional description is to be added. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">note</parametername>
</parameternamelist>
<parameterdescription>
<para>The content of the note to be added to the created model. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">lang</parametername>
</parameternamelist>
<parameterdescription>
<para>The language of the note to be added to the created model. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created <ref refid="group__buddy__list_1gad98268f00fb29b50b22b3c3da566e366" kindref="member">LinphonePresenceModel</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1915" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1915" bodyend="1917"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gafe4ecbf13b53ca1edd1dfbc5cbb56a6e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> *</type>
        <definition>LinphonePresenceNote* linphone_core_create_presence_note</definition>
        <argsstring>(LinphoneCore *lc, const char *content, const char *lang)</argsstring>
        <name>linphone_core_create_presence_note</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>content</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>lang</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create a LinphonePresenceNote with the given content and language. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">content</parametername>
</parameternamelist>
<parameterdescription>
<para>The content of the note to be created. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">lang</parametername>
</parameternamelist>
<parameterdescription>
<para>The language of the note to be created. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created <ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1919" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1919" bodyend="1921"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1ga2dc001939b4fe56ce418f9e8f9c17232" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> *</type>
        <definition>LinphonePresencePerson* linphone_core_create_presence_person</definition>
        <argsstring>(LinphoneCore *lc, const char *id)</argsstring>
        <name>linphone_core_create_presence_person</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create a LinphonePresencePerson with the given id. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">id</parametername>
</parameternamelist>
<parameterdescription>
<para>The id of the person to be created. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created <ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1923" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1923" bodyend="1925"/>
      </memberdef>
      <memberdef kind="function" id="group__buddy__list_1gaa38987fdf57bc3a6f6c2ff6b27f113c1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> *</type>
        <definition>LinphonePresenceService* linphone_core_create_presence_service</definition>
        <argsstring>(LinphoneCore *lc, const char *id, LinphonePresenceBasicStatus basic_status, const char *contact)</argsstring>
        <name>linphone_core_create_presence_service</name>
        <param>
          <type><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> *</type>
          <declname>lc</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>id</declname>
        </param>
        <param>
          <type><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref></type>
          <declname>basic_status</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>contact</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create a LinphonePresenceService with the given id, basic status and contact. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername direction="in">lc</parametername>
</parameternamelist>
<parameterdescription>
<para><ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref> object. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">id</parametername>
</parameternamelist>
<parameterdescription>
<para>The id of the service to be created. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">basic_status</parametername>
</parameternamelist>
<parameterdescription>
<para>The basic status of the service to be created. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername direction="in">contact</parametername>
</parameternamelist>
<parameterdescription>
<para>A string containing a contact information corresponding to the service to be created. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The created <ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref> object. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" line="1927" column="1" bodyfile="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c" bodystart="1927" bodyend="1929"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*</highlight></codeline>
<codeline lineno="2"><highlight class="comment">linphone</highlight></codeline>
<codeline lineno="3"><highlight class="comment">Copyright<sp/>(C)<sp/>2010-2013<sp/><sp/>Belledonne<sp/>Communications<sp/>SARL</highlight></codeline>
<codeline lineno="4"><highlight class="comment"></highlight></codeline>
<codeline lineno="5"><highlight class="comment">This<sp/>program<sp/>is<sp/>free<sp/>software;<sp/>you<sp/>can<sp/>redistribute<sp/>it<sp/>and/or</highlight></codeline>
<codeline lineno="6"><highlight class="comment">modify<sp/>it<sp/>under<sp/>the<sp/>terms<sp/>of<sp/>the<sp/>GNU<sp/>General<sp/>Public<sp/>License</highlight></codeline>
<codeline lineno="7"><highlight class="comment">as<sp/>published<sp/>by<sp/>the<sp/>Free<sp/>Software<sp/>Foundation;<sp/>either<sp/>version<sp/>2</highlight></codeline>
<codeline lineno="8"><highlight class="comment">of<sp/>the<sp/>License,<sp/>or<sp/>(at<sp/>your<sp/>option)<sp/>any<sp/>later<sp/>version.</highlight></codeline>
<codeline lineno="9"><highlight class="comment"></highlight></codeline>
<codeline lineno="10"><highlight class="comment">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="11"><highlight class="comment">but<sp/>WITHOUT<sp/>ANY<sp/>WARRANTY;<sp/>without<sp/>even<sp/>the<sp/>implied<sp/>warranty<sp/>of</highlight></codeline>
<codeline lineno="12"><highlight class="comment">MERCHANTABILITY<sp/>or<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE.<sp/><sp/>See<sp/>the</highlight></codeline>
<codeline lineno="13"><highlight class="comment">GNU<sp/>General<sp/>Public<sp/>License<sp/>for<sp/>more<sp/>details.</highlight></codeline>
<codeline lineno="14"><highlight class="comment"></highlight></codeline>
<codeline lineno="15"><highlight class="comment">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="16"><highlight class="comment">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="17"><highlight class="comment">Foundation,<sp/>Inc.,<sp/>59<sp/>Temple<sp/>Place<sp/>-<sp/>Suite<sp/>330,<sp/>Boston,<sp/>MA<sp/><sp/>02111-1307,<sp/>USA.</highlight></codeline>
<codeline lineno="18"><highlight class="comment">*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;linphonecore.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="21"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;private.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;lpconfig.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="23"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;linphonepresence.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight></codeline>
<codeline lineno="25"><highlight class="normal"></highlight></codeline>
<codeline lineno="26"><highlight class="normal"></highlight></codeline>
<codeline lineno="27"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*__policy_enum_to_str(<ref refid="group__buddy__list_1gaf6e5d308b0b6e0ed6506e060ce51190e" kindref="member">LinphoneSubscribePolicy</ref><sp/>pol);</highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_LinphonePresenceNote<sp/>{</highlight></codeline>
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data;</highlight></codeline>
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>refcnt;</highlight></codeline>
<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang;</highlight></codeline>
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*content;</highlight></codeline>
<codeline lineno="36"><highlight class="normal">};</highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_LinphonePresenceService<sp/>{</highlight></codeline>
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data;</highlight></codeline>
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>refcnt;</highlight></codeline>
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*id;</highlight></codeline>
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>status;</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact;</highlight></codeline>
<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*notes;<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></codeline>
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>time_t<sp/>timestamp;</highlight></codeline>
<codeline lineno="46"><highlight class="normal">};</highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_LinphonePresenceActivity<sp/>{</highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data;</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>refcnt;</highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>type;</highlight></codeline>
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description;</highlight></codeline>
<codeline lineno="53"><highlight class="normal">};</highlight></codeline>
<codeline lineno="54"><highlight class="normal"></highlight></codeline>
<codeline lineno="55"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_LinphonePresencePerson<sp/>{</highlight></codeline>
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data;</highlight></codeline>
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>refcnt;</highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*id;</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*activities;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*activities_notes;<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*notes;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>time_t<sp/>timestamp;</highlight></codeline>
<codeline lineno="63"><highlight class="normal">};</highlight></codeline>
<codeline lineno="64"><highlight class="normal"></highlight></codeline>
<codeline lineno="69" refid="struct__LinphonePresenceModel" refkind="compound"><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">_LinphonePresenceModel</ref><sp/>{</highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data;</highlight></codeline>
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>refcnt;</highlight></codeline>
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>;<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="75"><highlight class="normal">};</highlight></codeline>
<codeline lineno="76"><highlight class="normal"></highlight></codeline>
<codeline lineno="77"><highlight class="normal"></highlight></codeline>
<codeline lineno="78"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*person_prefix<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;/pidf:presence/dm:person&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="79"><highlight class="normal"></highlight></codeline>
<codeline lineno="80"><highlight class="normal"></highlight></codeline>
<codeline lineno="81"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="82"><highlight class="comment"><sp/>*<sp/>PRIVATE<sp/>FUNCTIONS<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></codeline>
<codeline lineno="83"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="84"><highlight class="normal"></highlight><highlight class="comment">/*defined<sp/>in<sp/>http://www.w3.org/TR/REC-xml/*/</highlight></codeline>
<codeline lineno="85"><highlight class="comment">static<sp/>char<sp/>presence_id_valid_characters[]<sp/>=<sp/>&quot;0123456789abcdefghijklmnopqrstuvwxyz-.&quot;;</highlight></codeline>
<codeline lineno="86"><highlight class="comment">/*NameStartChar<sp/>(NameChar)**/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="87"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>presence_id_valid_start_characters[]<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;:_abcdefghijklmnopqrstuvwxyz&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="88"><highlight class="normal"></highlight></codeline>
<codeline lineno="89"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/>generate_presence_id(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal">[7];</highlight></codeline>
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal">[0]<sp/>=<sp/>presence_id_valid_start_characters[ortp_random()<sp/>%<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(presence_id_valid_start_characters)-1)];</highlight></codeline>
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;<sp/>6;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal">[i]<sp/>=<sp/>presence_id_valid_characters[ortp_random()<sp/>%<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(presence_id_valid_characters)-1)];</highlight></codeline>
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal">[6]<sp/>=<sp/></highlight><highlight class="charliteral">&apos;\0&apos;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="97"><highlight class="normal"></highlight></codeline>
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_strdup(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="99"><highlight class="normal">}</highlight></codeline>
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
<codeline lineno="101"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/>presence_basic_status_to_string(<ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status)<sp/>{</highlight></codeline>
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(basic_status)<sp/>{</highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a6cb2287d4aa6ab6edf71faa60dee2bc1" kindref="member">LinphonePresenceBasicStatusOpen</ref>:</highlight></codeline>
<codeline lineno="104"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">&quot;open&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>:</highlight></codeline>
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="107"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">&quot;closed&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="109"><highlight class="normal">}</highlight></codeline>
<codeline lineno="110"><highlight class="normal"></highlight></codeline>
<codeline lineno="111"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_note_delete(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(note-&gt;content);</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note-&gt;lang<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(note-&gt;lang);</highlight></codeline>
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(note);</highlight></codeline>
<codeline lineno="117"><highlight class="normal">}</highlight></codeline>
<codeline lineno="118"><highlight class="normal"></highlight></codeline>
<codeline lineno="119"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*<sp/>presence_service_new(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>status)<sp/>{</highlight></codeline>
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service<sp/>=<sp/>ms_new0(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref>,<sp/>1);</highlight></codeline>
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;refcnt<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;id<sp/>=<sp/>ms_strdup(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;status<sp/>=<sp/>status;</highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;timestamp<sp/>=<sp/>time(NULL);</highlight></codeline>
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>service;</highlight></codeline>
<codeline lineno="128"><highlight class="normal">}</highlight></codeline>
<codeline lineno="129"><highlight class="normal"></highlight></codeline>
<codeline lineno="130"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_service_delete(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;id<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(service-&gt;id);</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="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;contact<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(service-&gt;contact);</highlight></codeline>
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(service-&gt;notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(service-&gt;notes);</highlight></codeline>
<codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(service);</highlight></codeline>
<codeline lineno="140"><highlight class="normal">};</highlight></codeline>
<codeline lineno="141"><highlight class="normal"></highlight></codeline>
<codeline lineno="142"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_service_set_timestamp(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/>time_t<sp/>timestamp)<sp/>{</highlight></codeline>
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;timestamp<sp/>=<sp/>timestamp;</highlight></codeline>
<codeline lineno="144"><highlight class="normal">}</highlight></codeline>
<codeline lineno="145"><highlight class="normal"></highlight></codeline>
<codeline lineno="146"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_service_add_note(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;notes<sp/>=<sp/>ms_list_append(service-&gt;notes,<sp/>note);</highlight></codeline>
<codeline lineno="148"><highlight class="normal">}</highlight></codeline>
<codeline lineno="149"><highlight class="normal"></highlight></codeline>
<codeline lineno="150"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_activity_delete(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity-&gt;description<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(activity-&gt;description);</highlight></codeline>
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(activity);</highlight></codeline>
<codeline lineno="155"><highlight class="normal">}</highlight></codeline>
<codeline lineno="156"><highlight class="normal"></highlight></codeline>
<codeline lineno="157"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>time_t<sp/>parse_timestamp(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*timestamp)<sp/>{</highlight></codeline>
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">tm<sp/>ret;</highlight></codeline>
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>time_t<sp/>seconds;</highlight></codeline>
<codeline lineno="160"><highlight class="normal"></highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>memset(&amp;ret,<sp/>0,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(ret));</highlight></codeline>
<codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>sscanf(timestamp,<sp/></highlight><highlight class="stringliteral">&quot;%d-%d-%dT%d:%d:%d&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&amp;ret.tm_year,<sp/>&amp;ret.tm_mon,<sp/>&amp;ret.tm_mday,<sp/>&amp;ret.tm_hour,<sp/>&amp;ret.tm_min,<sp/>&amp;ret.tm_sec);</highlight></codeline>
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ret.tm_mon--;</highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ret.tm_year<sp/>-=<sp/>1900;</highlight></codeline>
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ret.tm_isdst<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>seconds<sp/>=<sp/>mktime(&amp;ret);</highlight></codeline>
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(seconds<sp/>==<sp/>(time_t)-1)<sp/>{</highlight></codeline>
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_error(</highlight><highlight class="stringliteral">&quot;mktime()<sp/>failed:<sp/>%s&quot;</highlight><highlight class="normal">,<sp/>strerror(errno));</highlight></codeline>
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(time_t)-1;</highlight></codeline>
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>seconds<sp/>-<sp/>timezone;</highlight></codeline>
<codeline lineno="173"><highlight class="normal">}</highlight></codeline>
<codeline lineno="174"><highlight class="normal"></highlight></codeline>
<codeline lineno="175"><highlight class="normal"></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/>linphone_timestamp_to_rfc3339_string(time_t<sp/>timestamp)<sp/>{</highlight></codeline>
<codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>timestamp_str[22];</highlight></codeline>
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">tm<sp/>*ret;</highlight></codeline>
<codeline lineno="178"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>WIN32</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">tm<sp/>gmt;</highlight></codeline>
<codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ret<sp/>=<sp/>gmtime_r(&amp;timestamp,&amp;gmt);</highlight></codeline>
<codeline lineno="181"><highlight class="normal"></highlight><highlight class="preprocessor">#else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ret<sp/>=<sp/>gmtime(&amp;timestamp);</highlight></codeline>
<codeline lineno="183"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>snprintf(timestamp_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(timestamp_str),<sp/></highlight><highlight class="stringliteral">&quot;%4d-%02d-%02dT%02d:%02d:%02dZ&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ret-&gt;tm_year<sp/>+<sp/>1900,<sp/>ret-&gt;tm_mon<sp/>+<sp/>1,<sp/>ret-&gt;tm_mday,<sp/>ret-&gt;tm_hour,<sp/>ret-&gt;tm_min,<sp/>ret-&gt;tm_sec);</highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_strdup(timestamp_str);</highlight></codeline>
<codeline lineno="187"><highlight class="normal">}</highlight></codeline>
<codeline lineno="188"><highlight class="normal"></highlight></codeline>
<codeline lineno="189"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*<sp/>presence_person_new(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/><sp/>time_t<sp/>timestamp)<sp/>{</highlight></codeline>
<codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person<sp/>=<sp/>ms_new0(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref>,<sp/>1);</highlight></codeline>
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;refcnt<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;id<sp/>=<sp/>ms_strdup(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="194"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person-&gt;timestamp<sp/>==<sp/>((time_t)-1))</highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;timestamp<sp/>=<sp/>time(NULL);</highlight></codeline>
<codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="198"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;timestamp<sp/>=<sp/>timestamp;</highlight></codeline>
<codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>person;</highlight></codeline>
<codeline lineno="200"><highlight class="normal">}</highlight></codeline>
<codeline lineno="201"><highlight class="normal"></highlight></codeline>
<codeline lineno="202"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_person_delete(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="203"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person-&gt;id<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(person-&gt;id);</highlight></codeline>
<codeline lineno="205"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;activities,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gac79612320aa2306460c1000657ea3261" kindref="member">linphone_presence_activity_unref</ref>);</highlight></codeline>
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;activities);</highlight></codeline>
<codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;activities_notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;activities_notes);</highlight></codeline>
<codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;notes);</highlight></codeline>
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(person);</highlight></codeline>
<codeline lineno="213"><highlight class="normal">}</highlight></codeline>
<codeline lineno="214"><highlight class="normal"></highlight></codeline>
<codeline lineno="215"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_person_add_activities_note(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;activities_notes<sp/>=<sp/>ms_list_append(person-&gt;activities_notes,<sp/>note);</highlight></codeline>
<codeline lineno="217"><highlight class="normal">}</highlight></codeline>
<codeline lineno="218"><highlight class="normal"></highlight></codeline>
<codeline lineno="219"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_person_add_note(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;notes<sp/>=<sp/>ms_list_append(person-&gt;notes,<sp/>note);</highlight></codeline>
<codeline lineno="221"><highlight class="normal">}</highlight></codeline>
<codeline lineno="222"><highlight class="normal"></highlight></codeline>
<codeline lineno="223"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_model_add_person(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref><sp/>=<sp/>ms_list_append(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>person);</highlight></codeline>
<codeline lineno="225"><highlight class="normal">}</highlight></codeline>
<codeline lineno="226"><highlight class="normal"></highlight></codeline>
<codeline lineno="227"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_model_add_note(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref><sp/>=<sp/>ms_list_append(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>,<sp/>note);</highlight></codeline>
<codeline lineno="229"><highlight class="normal">}</highlight></codeline>
<codeline lineno="230"><highlight class="normal"></highlight></codeline>
<codeline lineno="231"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_model_find_open_basic_status(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>*status)<sp/>{</highlight></codeline>
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;status<sp/>==<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a6cb2287d4aa6ab6edf71faa60dee2bc1" kindref="member">LinphonePresenceBasicStatusOpen</ref>)<sp/>{</highlight></codeline>
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a6cb2287d4aa6ab6edf71faa60dee2bc1" kindref="member">LinphonePresenceBasicStatusOpen</ref>;</highlight></codeline>
<codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="235"><highlight class="normal">}</highlight></codeline>
<codeline lineno="236"><highlight class="normal"></highlight></codeline>
<codeline lineno="237"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_model_delete(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="239"><highlight class="normal"></highlight></codeline>
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1ga57cc2e55255964551916991ba99a95d1" kindref="member">linphone_presence_service_unref</ref>);</highlight></codeline>
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>);</highlight></codeline>
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gacf352cdad5877cf9cbb1e910eaf8b626" kindref="member">linphone_presence_person_unref</ref>);</highlight></codeline>
<codeline lineno="243"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>);</highlight></codeline>
<codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="245"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>);</highlight></codeline>
<codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(model);</highlight></codeline>
<codeline lineno="247"><highlight class="normal">}</highlight></codeline>
<codeline lineno="248"><highlight class="normal"></highlight></codeline>
<codeline lineno="249"><highlight class="normal"></highlight></codeline>
<codeline lineno="250"><highlight class="normal"></highlight></codeline>
<codeline lineno="251"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="252"><highlight class="comment"><sp/>*<sp/>HELPER<sp/>FUNCTIONS<sp/>TO<sp/>EASE<sp/>ACCESS<sp/>IN<sp/>MOST<sp/>SIMPLER<sp/>CASES<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="253"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="254"><highlight class="normal"></highlight></codeline>
<codeline lineno="255"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga1d18d53dc6742c071b9a33d76761112b" kindref="member">linphone_presence_model_new_with_activity</ref>(<ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description)<sp/>{</highlight></codeline>
<codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model<sp/>=<sp/><ref refid="group__buddy__list_1gaafdc5ae622acaadbf1e58415756d9fa3" kindref="member">linphone_presence_model_new</ref>();</highlight></codeline>
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga24d62429a3d66ead56bc3e30b6705bb6" kindref="member">linphone_presence_model_set_activity</ref>(model,<sp/>acttype,<sp/>description);</highlight></codeline>
<codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>model;</highlight></codeline>
<codeline lineno="261"><highlight class="normal">}</highlight></codeline>
<codeline lineno="262"><highlight class="normal"></highlight></codeline>
<codeline lineno="263"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga37aa5cf371ba6cb116d92a2517d44fff" kindref="member">linphone_presence_model_new_with_activity_and_note</ref>(<ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*note,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model<sp/>=<sp/><ref refid="group__buddy__list_1gaafdc5ae622acaadbf1e58415756d9fa3" kindref="member">linphone_presence_model_new</ref>();</highlight></codeline>
<codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga24d62429a3d66ead56bc3e30b6705bb6" kindref="member">linphone_presence_model_set_activity</ref>(model,<sp/>acttype,<sp/>description);</highlight></codeline>
<codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga0fc1ede7cb16366bf4faf8605db69f27" kindref="member">linphone_presence_model_add_note</ref>(model,<sp/>note,<sp/>lang);</highlight></codeline>
<codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>model;</highlight></codeline>
<codeline lineno="270"><highlight class="normal">}</highlight></codeline>
<codeline lineno="271"><highlight class="normal"></highlight></codeline>
<codeline lineno="272"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Suppose<sp/>that<sp/>if<sp/>at<sp/>least<sp/>one<sp/>service<sp/>is<sp/>open,<sp/>then<sp/>the<sp/>model<sp/>is<sp/>open.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="273"><highlight class="normal"><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/><ref refid="group__buddy__list_1ga396ad42678b4c876ac7b1824782d2942" kindref="member">linphone_presence_model_get_basic_status</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>;</highlight></codeline>
<codeline lineno="275"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterate2Func)presence_model_find_open_basic_status,<sp/>&amp;status);</highlight></codeline>
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>status;</highlight></codeline>
<codeline lineno="279"><highlight class="normal">}</highlight></codeline>
<codeline lineno="280"><highlight class="normal"></highlight></codeline>
<codeline lineno="281"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaf4976a640b82b73f33e9cbd2f50ba380" kindref="member">linphone_presence_model_set_basic_status</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status)<sp/>{</highlight></codeline>
<codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service;</highlight></codeline>
<codeline lineno="283"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="284"><highlight class="normal"></highlight></codeline>
<codeline lineno="285"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="286"><highlight class="normal"></highlight></codeline>
<codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga04999d9e1918f1032995d4fd7e32dc1d" kindref="member">linphone_presence_model_clear_services</ref>(model);</highlight></codeline>
<codeline lineno="288"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service<sp/>=<sp/><ref refid="group__buddy__list_1gacbae5482f29072a109efc1a446aca529" kindref="member">linphone_presence_service_new</ref>(NULL,<sp/>basic_status,<sp/>NULL);</highlight></codeline>
<codeline lineno="289"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="290"><highlight class="normal"></highlight></codeline>
<codeline lineno="291"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/><ref refid="group__buddy__list_1ga2335d062c90a068b893ea9830e3d13b0" kindref="member">linphone_presence_model_add_service</ref>(model,<sp/>service);</highlight></codeline>
<codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga57cc2e55255964551916991ba99a95d1" kindref="member">linphone_presence_service_unref</ref>(service);</highlight></codeline>
<codeline lineno="293"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="294"><highlight class="normal">}</highlight></codeline>
<codeline lineno="295"><highlight class="normal"></highlight></codeline>
<codeline lineno="296"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_service_find_newer_timestamp(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/>time_t<sp/>*timestamp)<sp/>{</highlight></codeline>
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;timestamp<sp/>&gt;<sp/>*timestamp)</highlight></codeline>
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*timestamp<sp/>=<sp/>service-&gt;timestamp;</highlight></codeline>
<codeline lineno="299"><highlight class="normal">}</highlight></codeline>
<codeline lineno="300"><highlight class="normal"></highlight></codeline>
<codeline lineno="301"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_person_find_newer_timestamp(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/>time_t<sp/>*timestamp)<sp/>{</highlight></codeline>
<codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person-&gt;timestamp<sp/>&gt;<sp/>*timestamp)</highlight></codeline>
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*timestamp<sp/>=<sp/>person-&gt;timestamp;</highlight></codeline>
<codeline lineno="304"><highlight class="normal">}</highlight></codeline>
<codeline lineno="305"><highlight class="normal"></highlight></codeline>
<codeline lineno="306"><highlight class="normal">time_t<sp/><ref refid="group__buddy__list_1ga804edf09dcffe5528d98042e7e84ac30" kindref="member">linphone_presence_model_get_timestamp</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>time_t<sp/>timestamp<sp/>=<sp/>(time_t)-1;</highlight></codeline>
<codeline lineno="308"><highlight class="normal"></highlight></codeline>
<codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>timestamp;</highlight></codeline>
<codeline lineno="311"><highlight class="normal"></highlight></codeline>
<codeline lineno="312"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterate2Func)presence_service_find_newer_timestamp,<sp/>&amp;timestamp);</highlight></codeline>
<codeline lineno="313"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterate2Func)presence_person_find_newer_timestamp,<sp/>&amp;timestamp);</highlight></codeline>
<codeline lineno="314"><highlight class="normal"></highlight></codeline>
<codeline lineno="315"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>timestamp;</highlight></codeline>
<codeline lineno="316"><highlight class="normal">}</highlight></codeline>
<codeline lineno="317"><highlight class="normal"></highlight></codeline>
<codeline lineno="318"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_model_find_contact(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>**contact)<sp/>{</highlight></codeline>
<codeline lineno="319"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((service-&gt;contact<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(*contact<sp/>==<sp/>NULL))</highlight></codeline>
<codeline lineno="320"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*contact<sp/>=<sp/>service-&gt;contact;</highlight></codeline>
<codeline lineno="321"><highlight class="normal">}</highlight></codeline>
<codeline lineno="322"><highlight class="normal"></highlight></codeline>
<codeline lineno="323"><highlight class="normal"></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga9be1bde36d7437367f6f6fb2765b23ea" kindref="member">linphone_presence_model_get_contact</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterate2Func)presence_model_find_contact,<sp/>&amp;contact);</highlight></codeline>
<codeline lineno="326"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(contact<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_strdup(contact);</highlight></codeline>
<codeline lineno="328"><highlight class="normal">}</highlight></codeline>
<codeline lineno="329"><highlight class="normal"></highlight></codeline>
<codeline lineno="330"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gad77b4bec03ea80eaed213d9e0a23c8a0" kindref="member">linphone_presence_model_set_contact</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact)<sp/>{</highlight></codeline>
<codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service;</highlight></codeline>
<codeline lineno="332"><highlight class="normal"></highlight></codeline>
<codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="334"><highlight class="normal"></highlight></codeline>
<codeline lineno="335"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service<sp/>=<sp/><ref refid="group__buddy__list_1ga89b3ce38a7475daa12fa98fae61a6ccf" kindref="member">linphone_presence_model_get_nth_service</ref>(model,<sp/>0);</highlight></codeline>
<codeline lineno="336"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service<sp/>=<sp/><ref refid="group__buddy__list_1gacbae5482f29072a109efc1a446aca529" kindref="member">linphone_presence_service_new</ref>(NULL,<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>,<sp/>NULL);</highlight></codeline>
<codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga2335d062c90a068b893ea9830e3d13b0" kindref="member">linphone_presence_model_add_service</ref>(model,<sp/>service);</highlight></codeline>
<codeline lineno="340"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="341"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga7bf6a8e2ae11c778d4c469db1ae80917" kindref="member">linphone_presence_service_set_contact</ref>(service,<sp/>contact);</highlight></codeline>
<codeline lineno="342"><highlight class="normal">}</highlight></codeline>
<codeline lineno="343"><highlight class="normal"></highlight></codeline>
<codeline lineno="344"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_model_count_activities(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*nb)<sp/>{</highlight></codeline>
<codeline lineno="345"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*nb<sp/>+=<sp/>ms_list_size(person-&gt;activities);</highlight></codeline>
<codeline lineno="346"><highlight class="normal">}</highlight></codeline>
<codeline lineno="347"><highlight class="normal"></highlight></codeline>
<codeline lineno="348"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_get_activity_st<sp/>{</highlight></codeline>
<codeline lineno="349"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>requested_idx;</highlight></codeline>
<codeline lineno="350"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>current_idx;</highlight></codeline>
<codeline lineno="351"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity;</highlight></codeline>
<codeline lineno="352"><highlight class="normal">};</highlight></codeline>
<codeline lineno="353"><highlight class="normal"></highlight></codeline>
<codeline lineno="354"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>presence_model_get_activity(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_get_activity_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="355"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>size<sp/>=<sp/>ms_list_size(person-&gt;activities);</highlight></codeline>
<codeline lineno="356"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st-&gt;requested_idx<sp/>&lt;<sp/>(st-&gt;current_idx<sp/>+<sp/>size))<sp/>{</highlight></codeline>
<codeline lineno="357"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;activity<sp/>=<sp/>(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*)ms_list_nth_data(person-&gt;activities,<sp/>st-&gt;requested_idx<sp/>-<sp/>st-&gt;current_idx);</highlight></codeline>
<codeline lineno="358"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="359"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;current_idx<sp/>+=<sp/>size;</highlight></codeline>
<codeline lineno="360"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="361"><highlight class="normal">}</highlight></codeline>
<codeline lineno="362"><highlight class="normal"></highlight></codeline>
<codeline lineno="363"><highlight class="normal"><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*<sp/><ref refid="group__buddy__list_1gae44a7723cc5843954981878e0ff654fd" kindref="member">linphone_presence_model_get_activity</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="364"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga7c70ea5f1e8d0f903b8313415494ec02" kindref="member">linphone_presence_model_get_nth_activity</ref>(model,<sp/>0);</highlight></codeline>
<codeline lineno="365"><highlight class="normal">}</highlight></codeline>
<codeline lineno="366"><highlight class="normal"></highlight></codeline>
<codeline lineno="367"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga24d62429a3d66ead56bc3e30b6705bb6" kindref="member">linphone_presence_model_set_activity</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description)<sp/>{</highlight></codeline>
<codeline lineno="368"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a6cb2287d4aa6ab6edf71faa60dee2bc1" kindref="member">LinphonePresenceBasicStatusOpen</ref>;</highlight></codeline>
<codeline lineno="369"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity;</highlight></codeline>
<codeline lineno="370"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="371"><highlight class="normal"></highlight></codeline>
<codeline lineno="372"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="373"><highlight class="normal"></highlight></codeline>
<codeline lineno="374"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(acttype)<sp/>{</highlight></codeline>
<codeline lineno="375"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaac53282cdfa33de4b0cbcf0ed282673c" kindref="member">LinphonePresenceActivityAppointment</ref>:</highlight></codeline>
<codeline lineno="376"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca9321362a809f958ee552068736d111c5" kindref="member">LinphonePresenceActivityBusy</ref>:</highlight></codeline>
<codeline lineno="377"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acad0584a79304edde96c86ee8a8a9b5b8c" kindref="member">LinphonePresenceActivityMeeting</ref>:</highlight></codeline>
<codeline lineno="378"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acac73b9c5624dacd98dd82e4f5eb080fbc" kindref="member">LinphonePresenceActivityPermanentAbsence</ref>:</highlight></codeline>
<codeline lineno="379"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acae6c23b48f5e845a1892985da5844aae3" kindref="member">LinphonePresenceActivityOffline</ref>:</highlight></codeline>
<codeline lineno="380"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaefa940652209eaff7f5904a11b1b5989" kindref="member">LinphonePresenceActivityWorship</ref>:</highlight></codeline>
<codeline lineno="381"><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/>basic_status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>;</highlight></codeline>
<codeline lineno="382"><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/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="383"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="384"><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/>basic_status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a6cb2287d4aa6ab6edf71faa60dee2bc1" kindref="member">LinphonePresenceBasicStatusOpen</ref>;</highlight></codeline>
<codeline lineno="385"><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/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="386"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="387"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1gaf4976a640b82b73f33e9cbd2f50ba380" kindref="member">linphone_presence_model_set_basic_status</ref>(model,<sp/>basic_status)<sp/>&lt;<sp/>0)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="388"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gacb675e95048bb879a2bda9278087a219" kindref="member">linphone_presence_model_clear_activities</ref>(model);</highlight></codeline>
<codeline lineno="389"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity<sp/>=<sp/><ref refid="group__buddy__list_1ga91719f76c70a140c0a4187c16945501f" kindref="member">linphone_presence_activity_new</ref>(acttype,<sp/>description);</highlight></codeline>
<codeline lineno="390"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="391"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/><ref refid="group__buddy__list_1ga97a070251ca232a6eabe9f31e01f7086" kindref="member">linphone_presence_model_add_activity</ref>(model,<sp/>activity);</highlight></codeline>
<codeline lineno="392"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gac79612320aa2306460c1000657ea3261" kindref="member">linphone_presence_activity_unref</ref>(activity);</highlight></codeline>
<codeline lineno="393"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="394"><highlight class="normal">}</highlight></codeline>
<codeline lineno="395"><highlight class="normal"></highlight></codeline>
<codeline lineno="396"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga1a7e31c35f5ed5e87e545d24d7458d45" kindref="member">linphone_presence_model_get_nb_activities</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="397"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>nb<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="398"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterate2Func)presence_model_count_activities,<sp/>&amp;nb);</highlight></codeline>
<codeline lineno="399"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>nb;</highlight></codeline>
<codeline lineno="400"><highlight class="normal">}</highlight></codeline>
<codeline lineno="401"><highlight class="normal"></highlight></codeline>
<codeline lineno="402"><highlight class="normal"><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga7c70ea5f1e8d0f903b8313415494ec02" kindref="member">linphone_presence_model_get_nth_activity</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>idx)<sp/>{</highlight></codeline>
<codeline lineno="403"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_get_activity_st<sp/>st;</highlight></codeline>
<codeline lineno="404"><highlight class="normal"></highlight></codeline>
<codeline lineno="405"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(idx<sp/>&gt;=<sp/><ref refid="group__buddy__list_1ga1a7e31c35f5ed5e87e545d24d7458d45" kindref="member">linphone_presence_model_get_nb_activities</ref>(model)))</highlight></codeline>
<codeline lineno="406"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="407"><highlight class="normal"></highlight></codeline>
<codeline lineno="408"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>memset(&amp;st,<sp/>0,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(st));</highlight></codeline>
<codeline lineno="409"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.requested_idx<sp/>=<sp/>idx;</highlight></codeline>
<codeline lineno="410"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterate2Func)presence_model_get_activity,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="411"><highlight class="normal"></highlight></codeline>
<codeline lineno="412"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>st.activity;</highlight></codeline>
<codeline lineno="413"><highlight class="normal">}</highlight></codeline>
<codeline lineno="414"><highlight class="normal"></highlight></codeline>
<codeline lineno="415"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga97a070251ca232a6eabe9f31e01f7086" kindref="member">linphone_presence_model_add_activity</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="416"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="417"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="418"><highlight class="normal"></highlight></codeline>
<codeline lineno="419"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(activity<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="420"><highlight class="normal"></highlight></codeline>
<codeline lineno="421"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ms_list_size(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="422"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>There<sp/>is<sp/>no<sp/>person<sp/>in<sp/>the<sp/>presence<sp/>model,<sp/>add<sp/>one.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="423"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>=<sp/>generate_presence_id();</highlight></codeline>
<codeline lineno="424"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person<sp/>=<sp/>presence_person_new(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/>time(NULL));</highlight></codeline>
<codeline lineno="425"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>!=<sp/>NULL)<sp/>ms_free(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="426"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="427"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="428"><highlight class="normal"></highlight></codeline>
<codeline lineno="429"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>presence_model_add_person(model,<sp/>person);</highlight></codeline>
<codeline lineno="430"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="431"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Add<sp/>the<sp/>activity<sp/>to<sp/>the<sp/>first<sp/>person<sp/>in<sp/>the<sp/>model.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="432"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person<sp/>=<sp/>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*)ms_list_nth_data(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>0);</highlight></codeline>
<codeline lineno="433"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="434"><highlight class="normal"></highlight></codeline>
<codeline lineno="435"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3124d8045fa76284d4d7011b587f2a96" kindref="member">linphone_presence_person_add_activity</ref>(person,<sp/>activity);</highlight></codeline>
<codeline lineno="436"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="437"><highlight class="normal">}</highlight></codeline>
<codeline lineno="438"><highlight class="normal"></highlight></codeline>
<codeline lineno="439"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gacb675e95048bb879a2bda9278087a219" kindref="member">linphone_presence_model_clear_activities</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="440"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="441"><highlight class="normal"></highlight></codeline>
<codeline lineno="442"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1ga77ad33bc07d13ed2d37ea2041ccc12da" kindref="member">linphone_presence_person_clear_activities</ref>);</highlight></codeline>
<codeline lineno="443"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="444"><highlight class="normal">}</highlight></codeline>
<codeline lineno="445"><highlight class="normal"></highlight></codeline>
<codeline lineno="446"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_find_note_st<sp/>{</highlight></codeline>
<codeline lineno="447"><highlight class="normal"><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/>*lang;</highlight></codeline>
<codeline lineno="448"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note;</highlight></codeline>
<codeline lineno="449"><highlight class="normal">};</highlight></codeline>
<codeline lineno="450"><highlight class="normal"></highlight></codeline>
<codeline lineno="451"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/>find_presence_note_in_list(MSList<sp/>*list,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="452"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>nb;</highlight></codeline>
<codeline lineno="453"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="454"><highlight class="normal"></highlight></codeline>
<codeline lineno="455"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>nb<sp/>=<sp/>ms_list_size(list);</highlight></codeline>
<codeline lineno="456"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/>&lt;<sp/>nb;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="457"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note<sp/>=<sp/>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*)ms_list_nth_data(list,<sp/>i);</highlight></codeline>
<codeline lineno="458"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="459"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note-&gt;lang<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="460"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note;</highlight></codeline>
<codeline lineno="461"><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/>}</highlight></codeline>
<codeline lineno="462"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="463"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((note-&gt;lang<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(strcmp(lang,<sp/>note-&gt;lang)<sp/>==<sp/>0))<sp/>{</highlight></codeline>
<codeline lineno="464"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note;</highlight></codeline>
<codeline lineno="465"><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/>}</highlight></codeline>
<codeline lineno="466"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="467"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="468"><highlight class="normal"></highlight></codeline>
<codeline lineno="469"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="470"><highlight class="normal">}</highlight></codeline>
<codeline lineno="471"><highlight class="normal"></highlight></codeline>
<codeline lineno="472"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>find_presence_person_note(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_find_note_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="473"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>First<sp/>look<sp/>for<sp/>the<sp/>note<sp/>in<sp/>the<sp/>activities<sp/>notes...<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="474"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;note<sp/>=<sp/>find_presence_note_in_list(person-&gt;activities_notes,<sp/>st-&gt;lang);</highlight></codeline>
<codeline lineno="475"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st-&gt;note<sp/>!=<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="476"><highlight class="normal"></highlight></codeline>
<codeline lineno="477"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>...<sp/>then<sp/>look<sp/>in<sp/>the<sp/>person<sp/>notes.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="478"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;note<sp/>=<sp/>find_presence_note_in_list(person-&gt;notes,<sp/>st-&gt;lang);</highlight></codeline>
<codeline lineno="479"><highlight class="normal">}</highlight></codeline>
<codeline lineno="480"><highlight class="normal"></highlight></codeline>
<codeline lineno="481"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>find_presence_service_note(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_find_note_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="482"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;note<sp/>=<sp/>find_presence_note_in_list(service-&gt;notes,<sp/>st-&gt;lang);</highlight></codeline>
<codeline lineno="483"><highlight class="normal">}</highlight></codeline>
<codeline lineno="484"><highlight class="normal"></highlight></codeline>
<codeline lineno="485"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/>get_first_presence_note_in_list(MSList<sp/>*list)<sp/>{</highlight></codeline>
<codeline lineno="486"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*)ms_list_nth_data(list,<sp/>0);</highlight></codeline>
<codeline lineno="487"><highlight class="normal">}</highlight></codeline>
<codeline lineno="488"><highlight class="normal"></highlight></codeline>
<codeline lineno="489"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>get_first_presence_person_note(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_find_note_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="490"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;note<sp/>=<sp/>get_first_presence_note_in_list(person-&gt;activities_notes);</highlight></codeline>
<codeline lineno="491"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st-&gt;note<sp/>!=<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="492"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;note<sp/>=<sp/>get_first_presence_note_in_list(person-&gt;notes);</highlight></codeline>
<codeline lineno="493"><highlight class="normal">}</highlight></codeline>
<codeline lineno="494"><highlight class="normal"></highlight></codeline>
<codeline lineno="495"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>get_first_presence_service_note(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_find_note_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="496"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st-&gt;note<sp/>=<sp/>get_first_presence_note_in_list(service-&gt;notes);</highlight></codeline>
<codeline lineno="497"><highlight class="normal">}</highlight></codeline>
<codeline lineno="498"><highlight class="normal"></highlight></codeline>
<codeline lineno="499"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga1e1acbdf3506f61c264b2ba1aaaacd4e" kindref="member">linphone_presence_model_get_note</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="500"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_find_note_st<sp/>st;</highlight></codeline>
<codeline lineno="501"><highlight class="normal"></highlight></codeline>
<codeline lineno="502"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="503"><highlight class="normal"></highlight></codeline>
<codeline lineno="504"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.note<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="505"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="506"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>First<sp/>try<sp/>to<sp/>find<sp/>a<sp/>note<sp/>in<sp/>the<sp/>specified<sp/>language<sp/>exactly.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="507"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.lang<sp/>=<sp/>lang;</highlight></codeline>
<codeline lineno="508"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterate2Func)find_presence_person_note,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="509"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="510"><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/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterate2Func)find_presence_service_note,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="511"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="512"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="513"><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/>st.note<sp/>=<sp/>find_presence_note_in_list(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>,<sp/>lang);</highlight></codeline>
<codeline lineno="514"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="515"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="516"><highlight class="normal"></highlight></codeline>
<codeline lineno="517"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="518"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>No<sp/>notes<sp/>in<sp/>the<sp/>specified<sp/>language<sp/>has<sp/>been<sp/>found,<sp/>try<sp/>to<sp/>find<sp/>one<sp/>without<sp/>language.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="519"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.lang<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="520"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterate2Func)find_presence_person_note,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="521"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="522"><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/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterate2Func)find_presence_service_note,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="523"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="524"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="525"><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/>st.note<sp/>=<sp/>find_presence_note_in_list(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>,<sp/>NULL);</highlight></codeline>
<codeline lineno="526"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="527"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="528"><highlight class="normal"></highlight></codeline>
<codeline lineno="529"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="530"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Still<sp/>no<sp/>result,<sp/>so<sp/>get<sp/>the<sp/>first<sp/>note<sp/>even<sp/>if<sp/>it<sp/>is<sp/>not<sp/>in<sp/>the<sp/>specified<sp/>language.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="531"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterate2Func)get_first_presence_person_note,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="532"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="533"><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/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterate2Func)get_first_presence_service_note,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="534"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="535"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(st.note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="536"><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/>st.note<sp/>=<sp/>get_first_presence_note_in_list(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>);</highlight></codeline>
<codeline lineno="537"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="538"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="539"><highlight class="normal"></highlight></codeline>
<codeline lineno="540"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>st.note;</highlight></codeline>
<codeline lineno="541"><highlight class="normal">}</highlight></codeline>
<codeline lineno="542"><highlight class="normal"></highlight></codeline>
<codeline lineno="543"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga0fc1ede7cb16366bf4faf8605db69f27" kindref="member">linphone_presence_model_add_note</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*note_content,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="544"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service;</highlight></codeline>
<codeline lineno="545"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note;</highlight></codeline>
<codeline lineno="546"><highlight class="normal"></highlight></codeline>
<codeline lineno="547"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(note_content<sp/>==<sp/>NULL))</highlight></codeline>
<codeline lineno="548"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="549"><highlight class="normal"></highlight></codeline>
<codeline lineno="550"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Will<sp/>put<sp/>the<sp/>note<sp/>in<sp/>the<sp/>first<sp/>service.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="551"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service<sp/>=<sp/>ms_list_nth_data(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>0);</highlight></codeline>
<codeline lineno="552"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="553"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>If<sp/>no<sp/>service<sp/>exists,<sp/>create<sp/>one.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="554"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service<sp/>=<sp/>presence_service_new(generate_presence_id(),<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>);</highlight></codeline>
<codeline lineno="555"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="556"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="557"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="558"><highlight class="normal"></highlight></codeline>
<codeline lineno="559"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Search<sp/>for<sp/>an<sp/>existing<sp/>note<sp/>in<sp/>the<sp/>specified<sp/>language.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="560"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note<sp/>=<sp/>find_presence_note_in_list(service-&gt;notes,<sp/>lang);</highlight></codeline>
<codeline lineno="561"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="562"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note<sp/>=<sp/><ref refid="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" kindref="member">linphone_presence_note_new</ref>(note_content,<sp/>lang);</highlight></codeline>
<codeline lineno="563"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="564"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gae6b9a8cd498091b54f541974ea2b73ec" kindref="member">linphone_presence_note_set_content</ref>(note,<sp/>note_content);</highlight></codeline>
<codeline lineno="565"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="566"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="567"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="568"><highlight class="normal"></highlight></codeline>
<codeline lineno="569"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>presence_service_add_note(service,<sp/>note);</highlight></codeline>
<codeline lineno="570"><highlight class="normal"></highlight></codeline>
<codeline lineno="571"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="572"><highlight class="normal">}</highlight></codeline>
<codeline lineno="573"><highlight class="normal"></highlight></codeline>
<codeline lineno="574"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>clear_presence_person_notes(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="575"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;activities_notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="576"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;activities_notes);</highlight></codeline>
<codeline lineno="577"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;activities_notes<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="578"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="579"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;notes);</highlight></codeline>
<codeline lineno="580"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;notes<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="581"><highlight class="normal">}</highlight></codeline>
<codeline lineno="582"><highlight class="normal"></highlight></codeline>
<codeline lineno="583"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>clear_presence_service_notes(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="584"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(service-&gt;notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="585"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(service-&gt;notes);</highlight></codeline>
<codeline lineno="586"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;notes<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="587"><highlight class="normal">}</highlight></codeline>
<codeline lineno="588"><highlight class="normal"></highlight></codeline>
<codeline lineno="589"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gad23d4cfb9b5964028dcae0e09a46c644" kindref="member">linphone_presence_model_clear_notes</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="590"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="591"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="592"><highlight class="normal"></highlight></codeline>
<codeline lineno="593"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterateFunc)clear_presence_person_notes);</highlight></codeline>
<codeline lineno="594"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterateFunc)clear_presence_service_notes);</highlight></codeline>
<codeline lineno="595"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="596"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>);</highlight></codeline>
<codeline lineno="597"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref><sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="598"><highlight class="normal"></highlight></codeline>
<codeline lineno="599"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="600"><highlight class="normal">}</highlight></codeline>
<codeline lineno="601"><highlight class="normal"></highlight></codeline>
<codeline lineno="602"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="603"><highlight class="comment"><sp/>*<sp/>PRESENCE<sp/>MODEL<sp/>FUNCTIONS<sp/>TO<sp/>GET<sp/>ACCESS<sp/>TO<sp/>ALL<sp/>FUNCTIONALITIES<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="604"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="605"><highlight class="normal"></highlight></codeline>
<codeline lineno="606"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1gaafdc5ae622acaadbf1e58415756d9fa3" kindref="member">linphone_presence_model_new</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="607"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model<sp/>=<sp/>ms_new0(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref>,<sp/>1);</highlight></codeline>
<codeline lineno="608"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;refcnt<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="609"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>model;</highlight></codeline>
<codeline lineno="610"><highlight class="normal">}</highlight></codeline>
<codeline lineno="611"><highlight class="normal"></highlight></codeline>
<codeline lineno="612"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gad3e5542b078b0ecbe16a52dae48d1c9e" kindref="member">linphone_presence_model_get_nb_services</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="613"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_list_size(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>);</highlight></codeline>
<codeline lineno="614"><highlight class="normal">}</highlight></codeline>
<codeline lineno="615"><highlight class="normal"></highlight></codeline>
<codeline lineno="616"><highlight class="normal"><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga89b3ce38a7475daa12fa98fae61a6ccf" kindref="member">linphone_presence_model_get_nth_service</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>idx)<sp/>{</highlight></codeline>
<codeline lineno="617"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(idx<sp/>&gt;=<sp/><ref refid="group__buddy__list_1gad3e5542b078b0ecbe16a52dae48d1c9e" kindref="member">linphone_presence_model_get_nb_services</ref>(model)))</highlight></codeline>
<codeline lineno="618"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="619"><highlight class="normal"></highlight></codeline>
<codeline lineno="620"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*)ms_list_nth_data(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>idx);</highlight></codeline>
<codeline lineno="621"><highlight class="normal">}</highlight></codeline>
<codeline lineno="622"><highlight class="normal"></highlight></codeline>
<codeline lineno="623"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga2335d062c90a068b893ea9830e3d13b0" kindref="member">linphone_presence_model_add_service</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="624"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(service<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="625"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref><sp/>=<sp/>ms_list_append(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/><ref refid="group__buddy__list_1gae4189ee0d69b19b038edf424d9093423" kindref="member">linphone_presence_service_ref</ref>(service));</highlight></codeline>
<codeline lineno="626"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="627"><highlight class="normal">}</highlight></codeline>
<codeline lineno="628"><highlight class="normal"></highlight></codeline>
<codeline lineno="629"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga04999d9e1918f1032995d4fd7e32dc1d" kindref="member">linphone_presence_model_clear_services</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="630"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="631"><highlight class="normal"></highlight></codeline>
<codeline lineno="632"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1ga57cc2e55255964551916991ba99a95d1" kindref="member">linphone_presence_service_unref</ref>);</highlight></codeline>
<codeline lineno="633"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>);</highlight></codeline>
<codeline lineno="634"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref><sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="635"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="636"><highlight class="normal">}</highlight></codeline>
<codeline lineno="637"><highlight class="normal"></highlight></codeline>
<codeline lineno="638"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga4ee2f72181d54d196dc585e0b4718fc9" kindref="member">linphone_presence_model_get_nb_persons</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="639"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_list_size(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>);</highlight></codeline>
<codeline lineno="640"><highlight class="normal">}</highlight></codeline>
<codeline lineno="641"><highlight class="normal"></highlight></codeline>
<codeline lineno="642"><highlight class="normal"><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga76fb2167dcbf66e27136f541de239a35" kindref="member">linphone_presence_model_get_nth_person</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>idx)<sp/>{</highlight></codeline>
<codeline lineno="643"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(idx<sp/>&gt;=<sp/><ref refid="group__buddy__list_1ga4ee2f72181d54d196dc585e0b4718fc9" kindref="member">linphone_presence_model_get_nb_persons</ref>(model)))</highlight></codeline>
<codeline lineno="644"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="645"><highlight class="normal"></highlight></codeline>
<codeline lineno="646"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*)ms_list_nth_data(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>idx);</highlight></codeline>
<codeline lineno="647"><highlight class="normal">}</highlight></codeline>
<codeline lineno="648"><highlight class="normal"></highlight></codeline>
<codeline lineno="649"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga1bb38c17dfde730fd76475b50534bf87" kindref="member">linphone_presence_model_add_person</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="650"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(person<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="651"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref><sp/>=<sp/>ms_list_append(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/><ref refid="group__buddy__list_1gad55abd011e2aaedacddf12f630a68fa2" kindref="member">linphone_presence_person_ref</ref>(person));</highlight></codeline>
<codeline lineno="652"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="653"><highlight class="normal">}</highlight></codeline>
<codeline lineno="654"><highlight class="normal"></highlight></codeline>
<codeline lineno="655"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gada0bb3a977d9a86132235c07d71e4c40" kindref="member">linphone_presence_model_clear_persons</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="656"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="657"><highlight class="normal"></highlight></codeline>
<codeline lineno="658"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gacf352cdad5877cf9cbb1e910eaf8b626" kindref="member">linphone_presence_person_unref</ref>);</highlight></codeline>
<codeline lineno="659"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>);</highlight></codeline>
<codeline lineno="660"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref><sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="661"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="662"><highlight class="normal">}</highlight></codeline>
<codeline lineno="663"><highlight class="normal"></highlight></codeline>
<codeline lineno="664"><highlight class="normal"></highlight></codeline>
<codeline lineno="665"><highlight class="normal"></highlight></codeline>
<codeline lineno="666"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="667"><highlight class="comment"><sp/>*<sp/>PRESENCE<sp/>SERVICE<sp/>FUNCTIONS<sp/>TO<sp/>GET<sp/>ACCESS<sp/>TO<sp/>ALL<sp/>FUNCTIONALITIES<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="668"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="669"><highlight class="normal"></highlight></codeline>
<codeline lineno="670"><highlight class="normal"><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*<sp/><ref refid="group__buddy__list_1gacbae5482f29072a109efc1a446aca529" kindref="member">linphone_presence_service_new</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact)<sp/>{</highlight></codeline>
<codeline lineno="671"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service;</highlight></codeline>
<codeline lineno="672"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*service_id;</highlight></codeline>
<codeline lineno="673"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="674"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service_id<sp/>=<sp/>generate_presence_id();</highlight></codeline>
<codeline lineno="675"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="676"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service_id<sp/>=<sp/>ms_strdup(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="677"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service<sp/>=<sp/>presence_service_new(service_id,<sp/>basic_status);</highlight></codeline>
<codeline lineno="678"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga7bf6a8e2ae11c778d4c469db1ae80917" kindref="member">linphone_presence_service_set_contact</ref>(service,<sp/>contact);</highlight></codeline>
<codeline lineno="679"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service_id<sp/>!=<sp/>NULL)</highlight></codeline>
<codeline lineno="680"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(service_id);</highlight></codeline>
<codeline lineno="681"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>service;</highlight></codeline>
<codeline lineno="682"><highlight class="normal">}</highlight></codeline>
<codeline lineno="683"><highlight class="normal"></highlight></codeline>
<codeline lineno="684"><highlight class="normal"></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1gae2826b6feb04ac8ff6b02698431f9ca7" kindref="member">linphone_presence_service_get_id</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="685"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="686"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_strdup(service-&gt;id);</highlight></codeline>
<codeline lineno="687"><highlight class="normal">}</highlight></codeline>
<codeline lineno="688"><highlight class="normal"></highlight></codeline>
<codeline lineno="689"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaba3835eed0b42ac55fd4caf37ee67eaa" kindref="member">linphone_presence_service_set_id</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="690"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="691"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;id<sp/>!=<sp/>NULL)</highlight></codeline>
<codeline lineno="692"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(service-&gt;id);</highlight></codeline>
<codeline lineno="693"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="694"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;id<sp/>=<sp/>generate_presence_id();</highlight></codeline>
<codeline lineno="695"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="696"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;id<sp/>=<sp/>ms_strdup(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="697"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="698"><highlight class="normal">}</highlight></codeline>
<codeline lineno="699"><highlight class="normal"></highlight></codeline>
<codeline lineno="700"><highlight class="normal"><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/><ref refid="group__buddy__list_1ga38bd8f8e8fae6e2b02f6ea8bac4a296c" kindref="member">linphone_presence_service_get_basic_status</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="701"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>;</highlight></codeline>
<codeline lineno="702"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>service-&gt;status;</highlight></codeline>
<codeline lineno="703"><highlight class="normal">}</highlight></codeline>
<codeline lineno="704"><highlight class="normal"></highlight></codeline>
<codeline lineno="705"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gad06e643ca00c3763248cf66545b124fe" kindref="member">linphone_presence_service_set_basic_status</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status)<sp/>{</highlight></codeline>
<codeline lineno="706"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="707"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;status<sp/>=<sp/>basic_status;</highlight></codeline>
<codeline lineno="708"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="709"><highlight class="normal">}</highlight></codeline>
<codeline lineno="710"><highlight class="normal"></highlight></codeline>
<codeline lineno="711"><highlight class="normal"></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga55b6c2037f50ad5b3cf09ca66f104a70" kindref="member">linphone_presence_service_get_contact</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="712"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;contact<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="713"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_strdup(service-&gt;contact);</highlight></codeline>
<codeline lineno="714"><highlight class="normal">}</highlight></codeline>
<codeline lineno="715"><highlight class="normal"></highlight></codeline>
<codeline lineno="716"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga7bf6a8e2ae11c778d4c469db1ae80917" kindref="member">linphone_presence_service_set_contact</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact)<sp/>{</highlight></codeline>
<codeline lineno="717"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="718"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;contact<sp/>!=<sp/>NULL)</highlight></codeline>
<codeline lineno="719"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(service-&gt;contact);</highlight></codeline>
<codeline lineno="720"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(contact<sp/>!=<sp/>NULL)</highlight></codeline>
<codeline lineno="721"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;contact<sp/>=<sp/>ms_strdup(contact);</highlight></codeline>
<codeline lineno="722"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="723"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;contact<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="724"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="725"><highlight class="normal">}</highlight></codeline>
<codeline lineno="726"><highlight class="normal"></highlight></codeline>
<codeline lineno="727"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga617f5e028bb247edb687a382a9e9a45a" kindref="member">linphone_presence_service_get_nb_notes</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="728"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_list_size(service-&gt;notes);</highlight></codeline>
<codeline lineno="729"><highlight class="normal">}</highlight></codeline>
<codeline lineno="730"><highlight class="normal"></highlight></codeline>
<codeline lineno="731"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga37b2cb26beeae9dbe76b8fb96c14c718" kindref="member">linphone_presence_service_get_nth_note</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>idx)<sp/>{</highlight></codeline>
<codeline lineno="732"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((service<sp/>==<sp/>NULL)<sp/>||<sp/>(idx<sp/>&gt;=<sp/><ref refid="group__buddy__list_1ga617f5e028bb247edb687a382a9e9a45a" kindref="member">linphone_presence_service_get_nb_notes</ref>(service)))</highlight></codeline>
<codeline lineno="733"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="734"><highlight class="normal"></highlight></codeline>
<codeline lineno="735"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*)ms_list_nth_data(service-&gt;notes,<sp/>idx);</highlight></codeline>
<codeline lineno="736"><highlight class="normal">}</highlight></codeline>
<codeline lineno="737"><highlight class="normal"></highlight></codeline>
<codeline lineno="738"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga44fddcae238b72375324c8f7c8ceee2c" kindref="member">linphone_presence_service_add_note</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="739"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((service<sp/>==<sp/>NULL)<sp/>||<sp/>(note<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="740"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;notes<sp/>=<sp/>ms_list_append(service-&gt;notes,<sp/><ref refid="group__buddy__list_1ga389302f58eace7638964db50381534c1" kindref="member">linphone_presence_note_ref</ref>(note));</highlight></codeline>
<codeline lineno="741"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="742"><highlight class="normal">}</highlight></codeline>
<codeline lineno="743"><highlight class="normal"></highlight></codeline>
<codeline lineno="744"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga79d316095dd5b80eb9980e9a9059ab91" kindref="member">linphone_presence_service_clear_notes</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="745"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="746"><highlight class="normal"></highlight></codeline>
<codeline lineno="747"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(service-&gt;notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="748"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(service-&gt;notes);</highlight></codeline>
<codeline lineno="749"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;notes<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="750"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="751"><highlight class="normal">}</highlight></codeline>
<codeline lineno="752"><highlight class="normal"></highlight></codeline>
<codeline lineno="753"><highlight class="normal"></highlight></codeline>
<codeline lineno="754"><highlight class="normal"></highlight></codeline>
<codeline lineno="755"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="756"><highlight class="comment"><sp/>*<sp/>PRESENCE<sp/>PERSON<sp/>FUNCTIONS<sp/>TO<sp/>GET<sp/>ACCESS<sp/>TO<sp/>ALL<sp/>FUNCTIONALITIES<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="757"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="758"><highlight class="normal"></highlight></codeline>
<codeline lineno="759"><highlight class="normal"><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*<sp/><ref refid="group__buddy__list_1gaccc8c6acf008ab23615562f4ef2d611f" kindref="member">linphone_presence_person_new</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="760"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>presence_person_new(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/>time(NULL));</highlight></codeline>
<codeline lineno="761"><highlight class="normal">}</highlight></codeline>
<codeline lineno="762"><highlight class="normal"></highlight></codeline>
<codeline lineno="763"><highlight class="normal"></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga46c62423dd60cc7ccef6f6978bce2b26" kindref="member">linphone_presence_person_get_id</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="764"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="765"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_strdup(person-&gt;id);</highlight></codeline>
<codeline lineno="766"><highlight class="normal">}</highlight></codeline>
<codeline lineno="767"><highlight class="normal"></highlight></codeline>
<codeline lineno="768"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga265f171c2a87ad76da2d4bd5e1fb1710" kindref="member">linphone_presence_person_set_id</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="769"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="770"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person-&gt;id<sp/>!=<sp/>NULL)</highlight></codeline>
<codeline lineno="771"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(person-&gt;id);</highlight></codeline>
<codeline lineno="772"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="773"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;id<sp/>=<sp/>generate_presence_id();</highlight></codeline>
<codeline lineno="774"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="775"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;id<sp/>=<sp/>ms_strdup(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="776"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="777"><highlight class="normal">}</highlight></codeline>
<codeline lineno="778"><highlight class="normal"></highlight></codeline>
<codeline lineno="779"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gabef33b8fad7823e0166fa4db0cbbcaac" kindref="member">linphone_presence_person_get_nb_activities</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="780"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="781"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_list_size(person-&gt;activities);</highlight></codeline>
<codeline lineno="782"><highlight class="normal">}</highlight></codeline>
<codeline lineno="783"><highlight class="normal"></highlight></codeline>
<codeline lineno="784"><highlight class="normal"><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga09ebfa64023fd9fd4a430d59190195b5" kindref="member">linphone_presence_person_get_nth_activity</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>idx)<sp/>{</highlight></codeline>
<codeline lineno="785"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person<sp/>==<sp/>NULL)<sp/>||<sp/>(idx<sp/>&gt;=<sp/><ref refid="group__buddy__list_1gabef33b8fad7823e0166fa4db0cbbcaac" kindref="member">linphone_presence_person_get_nb_activities</ref>(person)))</highlight></codeline>
<codeline lineno="786"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="787"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*)ms_list_nth_data(person-&gt;activities,<sp/>idx);</highlight></codeline>
<codeline lineno="788"><highlight class="normal">}</highlight></codeline>
<codeline lineno="789"><highlight class="normal"></highlight></codeline>
<codeline lineno="790"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3124d8045fa76284d4d7011b587f2a96" kindref="member">linphone_presence_person_add_activity</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="791"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person<sp/>==<sp/>NULL)<sp/>||<sp/>(activity<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="792"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;activities<sp/>=<sp/>ms_list_append(person-&gt;activities,<sp/><ref refid="group__buddy__list_1ga0d394e0df2d9b43dec1dccefa9e83ca0" kindref="member">linphone_presence_activity_ref</ref>(activity));</highlight></codeline>
<codeline lineno="793"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="794"><highlight class="normal">}</highlight></codeline>
<codeline lineno="795"><highlight class="normal"></highlight></codeline>
<codeline lineno="796"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga77ad33bc07d13ed2d37ea2041ccc12da" kindref="member">linphone_presence_person_clear_activities</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="797"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="798"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;activities,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gac79612320aa2306460c1000657ea3261" kindref="member">linphone_presence_activity_unref</ref>);</highlight></codeline>
<codeline lineno="799"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;activities);</highlight></codeline>
<codeline lineno="800"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;activities<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="801"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="802"><highlight class="normal">}</highlight></codeline>
<codeline lineno="803"><highlight class="normal"></highlight></codeline>
<codeline lineno="804"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaeb247eb73def4407f5865bb224140d0b" kindref="member">linphone_presence_person_get_nb_notes</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="805"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="806"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_list_size(person-&gt;notes);</highlight></codeline>
<codeline lineno="807"><highlight class="normal">}</highlight></codeline>
<codeline lineno="808"><highlight class="normal"></highlight></codeline>
<codeline lineno="809"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga833950e12b2430a5a123b12e0a432a08" kindref="member">linphone_presence_person_get_nth_note</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>idx)<sp/>{</highlight></codeline>
<codeline lineno="810"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person<sp/>==<sp/>NULL)<sp/>||<sp/>(idx<sp/>&gt;=<sp/><ref refid="group__buddy__list_1gaeb247eb73def4407f5865bb224140d0b" kindref="member">linphone_presence_person_get_nb_notes</ref>(person)))</highlight></codeline>
<codeline lineno="811"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="812"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*)ms_list_nth_data(person-&gt;notes,<sp/>idx);</highlight></codeline>
<codeline lineno="813"><highlight class="normal">}</highlight></codeline>
<codeline lineno="814"><highlight class="normal"></highlight></codeline>
<codeline lineno="815"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga01f9d37476e65230f7dc266f88dfceb5" kindref="member">linphone_presence_person_add_note</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="816"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person<sp/>==<sp/>NULL)<sp/>||<sp/>(note<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="817"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;notes<sp/>=<sp/>ms_list_append(person-&gt;notes,<sp/><ref refid="group__buddy__list_1ga389302f58eace7638964db50381534c1" kindref="member">linphone_presence_note_ref</ref>(note));</highlight></codeline>
<codeline lineno="818"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="819"><highlight class="normal">}</highlight></codeline>
<codeline lineno="820"><highlight class="normal"></highlight></codeline>
<codeline lineno="821"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gae0bdf0c41048b272c3ccaece4ae851ae" kindref="member">linphone_presence_person_clear_notes</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="822"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="823"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="824"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;notes);</highlight></codeline>
<codeline lineno="825"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;notes<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="826"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="827"><highlight class="normal">}</highlight></codeline>
<codeline lineno="828"><highlight class="normal"></highlight></codeline>
<codeline lineno="829"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gac1315bc838eec7f0078a7cedaae6bd53" kindref="member">linphone_presence_person_get_nb_activities_notes</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="830"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="831"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_list_size(person-&gt;activities_notes);</highlight></codeline>
<codeline lineno="832"><highlight class="normal">}</highlight></codeline>
<codeline lineno="833"><highlight class="normal"></highlight></codeline>
<codeline lineno="834"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga1db7cdf2487d8b71a0ed25a2f71e604c" kindref="member">linphone_presence_person_get_nth_activities_note</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>idx)<sp/>{</highlight></codeline>
<codeline lineno="835"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person<sp/>==<sp/>NULL)<sp/>||<sp/>(idx<sp/>&gt;=<sp/><ref refid="group__buddy__list_1gac1315bc838eec7f0078a7cedaae6bd53" kindref="member">linphone_presence_person_get_nb_activities_notes</ref>(person)))</highlight></codeline>
<codeline lineno="836"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="837"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*)ms_list_nth_data(person-&gt;activities_notes,<sp/>idx);</highlight></codeline>
<codeline lineno="838"><highlight class="normal">}</highlight></codeline>
<codeline lineno="839"><highlight class="normal"></highlight></codeline>
<codeline lineno="840"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga784a635d79a3eeec393db647f638089f" kindref="member">linphone_presence_person_add_activities_note</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="841"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person<sp/>==<sp/>NULL)<sp/>||<sp/>(note<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="842"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;notes<sp/>=<sp/>ms_list_append(person-&gt;activities_notes,<sp/><ref refid="group__buddy__list_1ga389302f58eace7638964db50381534c1" kindref="member">linphone_presence_note_ref</ref>(note));</highlight></codeline>
<codeline lineno="843"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="844"><highlight class="normal">}</highlight></codeline>
<codeline lineno="845"><highlight class="normal"></highlight></codeline>
<codeline lineno="846"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gae7c98db1d7cfc7bb133f256c6ef0045e" kindref="member">linphone_presence_person_clear_activities_notes</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="847"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="848"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(person-&gt;activities_notes,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>);</highlight></codeline>
<codeline lineno="849"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_free(person-&gt;activities_notes);</highlight></codeline>
<codeline lineno="850"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;activities_notes<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="851"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="852"><highlight class="normal">}</highlight></codeline>
<codeline lineno="853"><highlight class="normal"></highlight></codeline>
<codeline lineno="854"><highlight class="normal"></highlight></codeline>
<codeline lineno="855"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="856"><highlight class="comment"><sp/>*<sp/>PRESENCE<sp/>ACTIVITY<sp/>FUNCTIONS<sp/>TO<sp/>GET<sp/>ACCESS<sp/>TO<sp/>ALL<sp/>FUNCTIONALITIES<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="857"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="858"><highlight class="normal"></highlight></codeline>
<codeline lineno="859"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_activity_name_map<sp/>{</highlight></codeline>
<codeline lineno="860"><highlight class="normal"><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/>*name;</highlight></codeline>
<codeline lineno="861"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>type;</highlight></codeline>
<codeline lineno="862"><highlight class="normal">};</highlight></codeline>
<codeline lineno="863"><highlight class="normal"></highlight></codeline>
<codeline lineno="864"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_activity_name_map<sp/>activity_map[]<sp/>=<sp/>{</highlight></codeline>
<codeline lineno="865"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;appointment&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaac53282cdfa33de4b0cbcf0ed282673c" kindref="member">LinphonePresenceActivityAppointment</ref><sp/>},</highlight></codeline>
<codeline lineno="866"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;away&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca0df5a9a7bcae6ff52aeb8cc502a6e7af" kindref="member">LinphonePresenceActivityAway</ref><sp/>},</highlight></codeline>
<codeline lineno="867"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;breakfast&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca8cccbbdfd0909f4063199962642fa76b" kindref="member">LinphonePresenceActivityBreakfast</ref><sp/>},</highlight></codeline>
<codeline lineno="868"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;busy&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca9321362a809f958ee552068736d111c5" kindref="member">LinphonePresenceActivityBusy</ref><sp/>},</highlight></codeline>
<codeline lineno="869"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;dinner&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca64c1f4795aa9eb80302356aedb81a7ea" kindref="member">LinphonePresenceActivityDinner</ref><sp/>},</highlight></codeline>
<codeline lineno="870"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;holiday&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca73a8249fee86792494181a017c1aab65" kindref="member">LinphonePresenceActivityHoliday</ref><sp/>},</highlight></codeline>
<codeline lineno="871"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;in-transit&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca674f2624d3f77e5d7bbff99c75532081" kindref="member">LinphonePresenceActivityInTransit</ref><sp/>},</highlight></codeline>
<codeline lineno="872"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;looking-for-work&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaf7a550b781668be23a8d1f1e277cace3" kindref="member">LinphonePresenceActivityLookingForWork</ref><sp/>},</highlight></codeline>
<codeline lineno="873"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;lunch&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acadac59f1cbb3da20e7ce4549c0b63bc35" kindref="member">LinphonePresenceActivityLunch</ref><sp/>},</highlight></codeline>
<codeline lineno="874"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;meal&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca04bcb2b58b21093ee53fe1e5a465efa7" kindref="member">LinphonePresenceActivityMeal</ref><sp/>},</highlight></codeline>
<codeline lineno="875"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;meeting&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acad0584a79304edde96c86ee8a8a9b5b8c" kindref="member">LinphonePresenceActivityMeeting</ref><sp/>},</highlight></codeline>
<codeline lineno="876"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;on-the-phone&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acae7a0ec14d541c65e32688be2f8d25678" kindref="member">LinphonePresenceActivityOnThePhone</ref><sp/>},</highlight></codeline>
<codeline lineno="877"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;other&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaa91724dffdd8eb6c7eb0198ebe2b0c4d" kindref="member">LinphonePresenceActivityOther</ref><sp/>},</highlight></codeline>
<codeline lineno="878"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;performance&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acadea924084148ce84d705c82a6c455749" kindref="member">LinphonePresenceActivityPerformance</ref><sp/>},</highlight></codeline>
<codeline lineno="879"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;permanent-absence&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acac73b9c5624dacd98dd82e4f5eb080fbc" kindref="member">LinphonePresenceActivityPermanentAbsence</ref><sp/>},</highlight></codeline>
<codeline lineno="880"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;playing&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaceaa7d1bcdf294acf79112b0f9417c55" kindref="member">LinphonePresenceActivityPlaying</ref><sp/>},</highlight></codeline>
<codeline lineno="881"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;presentation&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acad8ecd3560e91b5570b7e70c4430acf5f" kindref="member">LinphonePresenceActivityPresentation</ref><sp/>},</highlight></codeline>
<codeline lineno="882"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;shopping&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaa1b7ce926994538c0e0400e21efdc764" kindref="member">LinphonePresenceActivityShopping</ref><sp/>},</highlight></codeline>
<codeline lineno="883"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;sleeping&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca4c6efc460dee87eafc3c6a67ac40579b" kindref="member">LinphonePresenceActivitySleeping</ref><sp/>},</highlight></codeline>
<codeline lineno="884"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;spectator&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acadb3dfc47cdd53c206cc2faa80610e4b8" kindref="member">LinphonePresenceActivitySpectator</ref><sp/>},</highlight></codeline>
<codeline lineno="885"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;steering&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca352afafa21ff6c35bc0bdb069626e281" kindref="member">LinphonePresenceActivitySteering</ref><sp/>},</highlight></codeline>
<codeline lineno="886"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;travel&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaf82e7dd1b966a55aa5a3d794f971b556" kindref="member">LinphonePresenceActivityTravel</ref><sp/>},</highlight></codeline>
<codeline lineno="887"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;tv&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acac2d34a10d4e4fd5ba52059d3650444e4" kindref="member">LinphonePresenceActivityTV</ref><sp/>},</highlight></codeline>
<codeline lineno="888"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;unknown&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaf8b53708da5fce2089416dbc6d0e2059" kindref="member">LinphonePresenceActivityUnknown</ref><sp/>},</highlight></codeline>
<codeline lineno="889"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;vacation&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acac35db7f2c21627d7a7a3b211aa940d7b" kindref="member">LinphonePresenceActivityVacation</ref><sp/>},</highlight></codeline>
<codeline lineno="890"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;working&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca2e1b3cf1344e6aef3b6364be947fe1c7" kindref="member">LinphonePresenceActivityWorking</ref><sp/>},</highlight></codeline>
<codeline lineno="891"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/></highlight><highlight class="stringliteral">&quot;worship&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acaefa940652209eaff7f5904a11b1b5989" kindref="member">LinphonePresenceActivityWorship</ref><sp/>}</highlight></codeline>
<codeline lineno="892"><highlight class="normal">};</highlight></codeline>
<codeline lineno="893"><highlight class="normal"></highlight></codeline>
<codeline lineno="894"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>activity_name_to_presence_activity_type(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*name,<sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>*acttype)<sp/>{</highlight></codeline>
<codeline lineno="895"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="896"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/>&lt;<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(activity_map)<sp/>/<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(activity_map[0]));<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="897"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(strcmp(name,<sp/>activity_map[i].name)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="898"><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/>*acttype<sp/>=<sp/>activity_map[i].type;</highlight></codeline>
<codeline lineno="899"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="900"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="901"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="902"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="903"><highlight class="normal">}</highlight></codeline>
<codeline lineno="904"><highlight class="normal"></highlight></codeline>
<codeline lineno="905"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/>presence_activity_type_to_string(<ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype)<sp/>{</highlight></codeline>
<codeline lineno="906"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="907"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/>&lt;<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(activity_map)<sp/>/<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(activity_map[0]));<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="908"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(acttype<sp/>==<sp/>activity_map[i].type)<sp/>{</highlight></codeline>
<codeline lineno="909"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>activity_map[i].name;</highlight></codeline>
<codeline lineno="910"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="911"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="912"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="913"><highlight class="normal">}</highlight></codeline>
<codeline lineno="914"><highlight class="normal"></highlight></codeline>
<codeline lineno="915"><highlight class="normal"><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga91719f76c70a140c0a4187c16945501f" kindref="member">linphone_presence_activity_new</ref>(<ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description)<sp/>{</highlight></codeline>
<codeline lineno="916"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*act<sp/>=<sp/>ms_new0(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref>,<sp/>1);</highlight></codeline>
<codeline lineno="917"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>act-&gt;refcnt<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="918"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>act-&gt;type<sp/>=<sp/>acttype;</highlight></codeline>
<codeline lineno="919"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(description<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="920"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>act-&gt;description<sp/>=<sp/>ms_strdup(description);</highlight></codeline>
<codeline lineno="921"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="922"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>act;</highlight></codeline>
<codeline lineno="923"><highlight class="normal">}</highlight></codeline>
<codeline lineno="924"><highlight class="normal"></highlight></codeline>
<codeline lineno="925"><highlight class="normal"></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga5b72ce9ec921a464eb7840ac35cee278" kindref="member">linphone_presence_activity_to_string</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="926"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype<sp/>=<sp/><ref refid="group__buddy__list_1ga13b83f3d94062696507a975313fc8e1c" kindref="member">linphone_presence_activity_get_type</ref>(activity);</highlight></codeline>
<codeline lineno="927"><highlight class="normal"><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/>*description<sp/>=<sp/><ref refid="group__buddy__list_1ga1480a5fc9dbb84a1e45c6b5a11333408" kindref="member">linphone_presence_activity_get_description</ref>(activity);</highlight></codeline>
<codeline lineno="928"><highlight class="normal"><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/>*acttype_str;</highlight></codeline>
<codeline lineno="929"><highlight class="normal"></highlight></codeline>
<codeline lineno="930"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(acttype<sp/>==<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acae6c23b48f5e845a1892985da5844aae3" kindref="member">LinphonePresenceActivityOffline</ref>)</highlight></codeline>
<codeline lineno="931"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>acttype_str<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;offline&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="932"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(acttype<sp/>==<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca005609d9063ce6807e4532e363d9801f" kindref="member">LinphonePresenceActivityOnline</ref>)</highlight></codeline>
<codeline lineno="933"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>acttype_str<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;online&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="934"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="935"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>acttype_str<sp/>=<sp/>presence_activity_type_to_string(acttype);</highlight></codeline>
<codeline lineno="936"><highlight class="normal"></highlight></codeline>
<codeline lineno="937"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ms_strdup_printf(</highlight><highlight class="stringliteral">&quot;%s%s%s&quot;</highlight><highlight class="normal">,<sp/>acttype_str,</highlight></codeline>
<codeline lineno="938"><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/>(description<sp/>==<sp/>NULL)<sp/>?<sp/></highlight><highlight class="stringliteral">&quot;&quot;</highlight><highlight class="normal"><sp/>:<sp/></highlight><highlight class="stringliteral">&quot;:<sp/>&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="939"><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/>(description<sp/>==<sp/>NULL)<sp/>?<sp/></highlight><highlight class="stringliteral">&quot;&quot;</highlight><highlight class="normal"><sp/>:<sp/>description);</highlight></codeline>
<codeline lineno="940"><highlight class="normal">}</highlight></codeline>
<codeline lineno="941"><highlight class="normal"></highlight></codeline>
<codeline lineno="942"><highlight class="normal"><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/><ref refid="group__buddy__list_1ga13b83f3d94062696507a975313fc8e1c" kindref="member">linphone_presence_activity_get_type</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="943"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="944"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acae6c23b48f5e845a1892985da5844aae3" kindref="member">LinphonePresenceActivityOffline</ref>;</highlight></codeline>
<codeline lineno="945"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>activity-&gt;type;</highlight></codeline>
<codeline lineno="946"><highlight class="normal">}</highlight></codeline>
<codeline lineno="947"><highlight class="normal"></highlight></codeline>
<codeline lineno="948"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3983b5c4be3e20d13b85c6778a407395" kindref="member">linphone_presence_activity_set_type</ref>(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity,<sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype)<sp/>{</highlight></codeline>
<codeline lineno="949"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="950"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity-&gt;type<sp/>=<sp/>acttype;</highlight></codeline>
<codeline lineno="951"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="952"><highlight class="normal">}</highlight></codeline>
<codeline lineno="953"><highlight class="normal"></highlight></codeline>
<codeline lineno="954"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga1480a5fc9dbb84a1e45c6b5a11333408" kindref="member">linphone_presence_activity_get_description</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="955"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="956"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="957"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>activity-&gt;description;</highlight></codeline>
<codeline lineno="958"><highlight class="normal">}</highlight></codeline>
<codeline lineno="959"><highlight class="normal"></highlight></codeline>
<codeline lineno="960"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga6e8bbe8384a016e226b5cc985c0e1272" kindref="member">linphone_presence_activity_set_description</ref>(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description)<sp/>{</highlight></codeline>
<codeline lineno="961"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="962"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity-&gt;description<sp/>!=<sp/>NULL)</highlight></codeline>
<codeline lineno="963"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(activity-&gt;description);</highlight></codeline>
<codeline lineno="964"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(description<sp/>!=<sp/>NULL)</highlight></codeline>
<codeline lineno="965"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity-&gt;description<sp/>=<sp/>ms_strdup(description);</highlight></codeline>
<codeline lineno="966"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="967"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity-&gt;description<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="968"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="969"><highlight class="normal">}</highlight></codeline>
<codeline lineno="970"><highlight class="normal"></highlight></codeline>
<codeline lineno="971"><highlight class="normal"></highlight></codeline>
<codeline lineno="972"><highlight class="normal"></highlight></codeline>
<codeline lineno="973"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="974"><highlight class="comment"><sp/>*<sp/>PRESENCE<sp/>NOTE<sp/>FUNCTIONS<sp/>TO<sp/>GET<sp/>ACCESS<sp/>TO<sp/>ALL<sp/>FUNCTIONALITIES<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="975"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="976"><highlight class="normal"></highlight></codeline>
<codeline lineno="977"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" kindref="member">linphone_presence_note_new</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*content,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="978"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note;</highlight></codeline>
<codeline lineno="979"><highlight class="normal"></highlight></codeline>
<codeline lineno="980"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(content<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="981"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note<sp/>=<sp/>ms_new0(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref>,<sp/>1);</highlight></codeline>
<codeline lineno="982"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;refcnt<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="983"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;content<sp/>=<sp/>ms_strdup(content);</highlight></codeline>
<codeline lineno="984"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="985"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;lang<sp/>=<sp/>ms_strdup(lang);</highlight></codeline>
<codeline lineno="986"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="987"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note;</highlight></codeline>
<codeline lineno="988"><highlight class="normal">}</highlight></codeline>
<codeline lineno="989"><highlight class="normal"></highlight></codeline>
<codeline lineno="990"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1gab5b90424e91ccb22dbdb4291e446d148" kindref="member">linphone_presence_note_get_content</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="991"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="992"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="993"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note-&gt;content;</highlight></codeline>
<codeline lineno="994"><highlight class="normal">}</highlight></codeline>
<codeline lineno="995"><highlight class="normal"></highlight></codeline>
<codeline lineno="996"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gae6b9a8cd498091b54f541974ea2b73ec" kindref="member">linphone_presence_note_set_content</ref>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*content)<sp/>{</highlight></codeline>
<codeline lineno="997"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(content<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="998"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note-&gt;content<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="999"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(note-&gt;content);</highlight></codeline>
<codeline lineno="1000"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1001"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;content<sp/>=<sp/>ms_strdup(content);</highlight></codeline>
<codeline lineno="1002"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1003"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1004"><highlight class="normal"></highlight></codeline>
<codeline lineno="1005"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga085ddafc5805d194275afca727822c9b" kindref="member">linphone_presence_note_get_lang</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="1006"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="1007"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="1008"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note-&gt;lang;</highlight></codeline>
<codeline lineno="1009"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1010"><highlight class="normal"></highlight></codeline>
<codeline lineno="1011"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gae5ca86139602e0bbdbd9fd078bebfe0a" kindref="member">linphone_presence_note_set_lang</ref>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="1012"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note-&gt;lang<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1013"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(note-&gt;lang);</highlight></codeline>
<codeline lineno="1014"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;lang<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1015"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1016"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1017"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;lang<sp/>=<sp/>ms_strdup(lang);</highlight></codeline>
<codeline lineno="1018"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1019"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1020"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1021"><highlight class="normal"></highlight></codeline>
<codeline lineno="1022"><highlight class="normal"></highlight></codeline>
<codeline lineno="1023"><highlight class="normal"></highlight></codeline>
<codeline lineno="1024"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="1025"><highlight class="comment"><sp/>*<sp/>PRESENCE<sp/>INTERNAL<sp/>FUNCTIONS<sp/>FOR<sp/>WRAPPERS<sp/>IN<sp/>OTHER<sp/>PROGRAMMING<sp/>LANGUAGES<sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="1026"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1027"><highlight class="normal"></highlight></codeline>
<codeline lineno="1028"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga4717f8bfb975105b8c970bd0d18d19b8" kindref="member">linphone_presence_model_ref</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="1029"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;refcnt++;</highlight></codeline>
<codeline lineno="1030"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>model;</highlight></codeline>
<codeline lineno="1031"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1032"><highlight class="normal"></highlight></codeline>
<codeline lineno="1033"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga8c6c14fe45f6941149ed3eb759db9a23" kindref="member">linphone_presence_model_unref</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="1034"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;refcnt--;</highlight></codeline>
<codeline lineno="1035"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model-&gt;refcnt<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1036"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>presence_model_delete(model);</highlight></codeline>
<codeline lineno="1037"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="1038"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1039"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>model;</highlight></codeline>
<codeline lineno="1040"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1041"><highlight class="normal"></highlight></codeline>
<codeline lineno="1042"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga9f910786ce8e33b6ad4fbd36aaed8ed6" kindref="member">linphone_presence_model_set_user_data</ref>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data)<sp/>{</highlight></codeline>
<codeline lineno="1043"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model-&gt;user_data<sp/>=<sp/>user_data;</highlight></codeline>
<codeline lineno="1044"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1045"><highlight class="normal"></highlight></codeline>
<codeline lineno="1046"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1gad61eba499ed7dd69d26899ae29da1e96" kindref="member">linphone_presence_model_get_user_data</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="1047"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>model-&gt;user_data;</highlight></codeline>
<codeline lineno="1048"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1049"><highlight class="normal"></highlight></codeline>
<codeline lineno="1050"><highlight class="normal"><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*<sp/><ref refid="group__buddy__list_1gae4189ee0d69b19b038edf424d9093423" kindref="member">linphone_presence_service_ref</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="1051"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;refcnt++;</highlight></codeline>
<codeline lineno="1052"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>service;</highlight></codeline>
<codeline lineno="1053"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1054"><highlight class="normal"></highlight></codeline>
<codeline lineno="1055"><highlight class="normal"><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga57cc2e55255964551916991ba99a95d1" kindref="member">linphone_presence_service_unref</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="1056"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;refcnt--;</highlight></codeline>
<codeline lineno="1057"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service-&gt;refcnt<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1058"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>presence_service_delete(service);</highlight></codeline>
<codeline lineno="1059"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="1060"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1061"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>service;</highlight></codeline>
<codeline lineno="1062"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1063"><highlight class="normal"></highlight></codeline>
<codeline lineno="1064"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa203c02f77f2c26954d9cb5f70f9bf0d" kindref="member">linphone_presence_service_set_user_data</ref>(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data)<sp/>{</highlight></codeline>
<codeline lineno="1065"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service-&gt;user_data<sp/>=<sp/>user_data;</highlight></codeline>
<codeline lineno="1066"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1067"><highlight class="normal"></highlight></codeline>
<codeline lineno="1068"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga396c89780d741e99840ae43278337eb3" kindref="member">linphone_presence_service_get_user_data</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service)<sp/>{</highlight></codeline>
<codeline lineno="1069"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>service-&gt;user_data;</highlight></codeline>
<codeline lineno="1070"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1071"><highlight class="normal"></highlight></codeline>
<codeline lineno="1072"><highlight class="normal"><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*<sp/><ref refid="group__buddy__list_1gad55abd011e2aaedacddf12f630a68fa2" kindref="member">linphone_presence_person_ref</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="1073"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;refcnt++;</highlight></codeline>
<codeline lineno="1074"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>person;</highlight></codeline>
<codeline lineno="1075"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1076"><highlight class="normal"></highlight></codeline>
<codeline lineno="1077"><highlight class="normal"><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*<sp/><ref refid="group__buddy__list_1gacf352cdad5877cf9cbb1e910eaf8b626" kindref="member">linphone_presence_person_unref</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="1078"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;refcnt--;</highlight></codeline>
<codeline lineno="1079"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person-&gt;refcnt<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1080"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>presence_person_delete(person);</highlight></codeline>
<codeline lineno="1081"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="1082"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1083"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>person;</highlight></codeline>
<codeline lineno="1084"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1085"><highlight class="normal"></highlight></codeline>
<codeline lineno="1086"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga4a8574d8e0fb4cb18356abe62fae4908" kindref="member">linphone_presence_person_set_user_data</ref>(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data)<sp/>{</highlight></codeline>
<codeline lineno="1087"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person-&gt;user_data<sp/>=<sp/>user_data;</highlight></codeline>
<codeline lineno="1088"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1089"><highlight class="normal"></highlight></codeline>
<codeline lineno="1090"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1gab618172025e16909ecb681f2fe1a9602" kindref="member">linphone_presence_person_get_user_data</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="1091"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>person-&gt;user_data;</highlight></codeline>
<codeline lineno="1092"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1093"><highlight class="normal"></highlight></codeline>
<codeline lineno="1094"><highlight class="normal"><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga0d394e0df2d9b43dec1dccefa9e83ca0" kindref="member">linphone_presence_activity_ref</ref>(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="1095"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity-&gt;refcnt++;</highlight></codeline>
<codeline lineno="1096"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>activity;</highlight></codeline>
<codeline lineno="1097"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1098"><highlight class="normal"></highlight></codeline>
<codeline lineno="1099"><highlight class="normal"><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*<sp/><ref refid="group__buddy__list_1gac79612320aa2306460c1000657ea3261" kindref="member">linphone_presence_activity_unref</ref>(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="1100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity-&gt;refcnt--;</highlight></codeline>
<codeline lineno="1101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity-&gt;refcnt<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1102"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>presence_activity_delete(activity);</highlight></codeline>
<codeline lineno="1103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="1104"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>activity;</highlight></codeline>
<codeline lineno="1106"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1107"><highlight class="normal"></highlight></codeline>
<codeline lineno="1108"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3b863746ebcc2201cebaad0eb6c4dca3" kindref="member">linphone_presence_activity_set_user_data</ref>(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data)<sp/>{</highlight></codeline>
<codeline lineno="1109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity-&gt;user_data<sp/>=<sp/>user_data;</highlight></codeline>
<codeline lineno="1110"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1111"><highlight class="normal"></highlight></codeline>
<codeline lineno="1112"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga09054715cd2743c1474fe40cbf6c6080" kindref="member">linphone_presence_activity_get_user_data</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="1113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>activity-&gt;user_data;</highlight></codeline>
<codeline lineno="1114"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1115"><highlight class="normal"></highlight></codeline>
<codeline lineno="1116"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga389302f58eace7638964db50381534c1" kindref="member">linphone_presence_note_ref</ref>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="1117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;refcnt++;</highlight></codeline>
<codeline lineno="1118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note;</highlight></codeline>
<codeline lineno="1119"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1120"><highlight class="normal"></highlight></codeline>
<codeline lineno="1121"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1gad69d2e96beb208c12bc5051f339efab6" kindref="member">linphone_presence_note_unref</ref>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="1122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;refcnt--;</highlight></codeline>
<codeline lineno="1123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note-&gt;refcnt<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1124"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>presence_note_delete(note);</highlight></codeline>
<codeline lineno="1125"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="1126"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1127"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note;</highlight></codeline>
<codeline lineno="1128"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1129"><highlight class="normal"></highlight></codeline>
<codeline lineno="1130"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga2e75d324522b43e4abe40bba2ff709df" kindref="member">linphone_presence_note_set_user_data</ref>(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*user_data)<sp/>{</highlight></codeline>
<codeline lineno="1131"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note-&gt;user_data<sp/>=<sp/>user_data;</highlight></codeline>
<codeline lineno="1132"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1133"><highlight class="normal"></highlight></codeline>
<codeline lineno="1134"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<sp/><ref refid="group__buddy__list_1ga4908079aa3b46215873ca81b38431b0f" kindref="member">linphone_presence_note_get_user_data</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note)<sp/>{</highlight></codeline>
<codeline lineno="1135"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>note-&gt;user_data;</highlight></codeline>
<codeline lineno="1136"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1137"><highlight class="normal"></highlight></codeline>
<codeline lineno="1138"><highlight class="normal"></highlight></codeline>
<codeline lineno="1139"><highlight class="normal"></highlight></codeline>
<codeline lineno="1140"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************</highlight></codeline>
<codeline lineno="1141"><highlight class="comment"><sp/>*<sp/>XML<sp/>PRESENCE<sp/>INTERNAL<sp/>HANDLING<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></codeline>
<codeline lineno="1142"><highlight class="comment"><sp/>****************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1143"><highlight class="normal"></highlight></codeline>
<codeline lineno="1144"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*service_prefix<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;/pidf:presence/pidf:tuple&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1145"><highlight class="normal"></highlight></codeline>
<codeline lineno="1146"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>process_pidf_xml_presence_service_notes(xmlparsing_context_t<sp/>*xml_ctx,<sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>service_idx)<sp/>{</highlight></codeline>
<codeline lineno="1147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>xpath_str[MAX_XPATH_LENGTH];</highlight></codeline>
<codeline lineno="1148"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathObjectPtr<sp/>note_object;</highlight></codeline>
<codeline lineno="1149"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note;</highlight></codeline>
<codeline lineno="1150"><highlight class="normal"><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/>*note_str;</highlight></codeline>
<codeline lineno="1151"><highlight class="normal"><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/>*lang;</highlight></codeline>
<codeline lineno="1152"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="1153"><highlight class="normal"></highlight></codeline>
<codeline lineno="1154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/pidf:note&quot;</highlight><highlight class="normal">,<sp/>service_prefix,<sp/>service_idx);</highlight></codeline>
<codeline lineno="1155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((note_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(note_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1157"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;=<sp/>note_object-&gt;nodesetval-&gt;nodeNr;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1158"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/pidf:note[%i]&quot;</highlight><highlight class="normal">,<sp/>service_prefix,<sp/>service_idx,<sp/>i);</highlight></codeline>
<codeline lineno="1159"><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/>note_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1160"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_str<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">continue</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1161"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/pidf:note[%i]/@xml:lang&quot;</highlight><highlight class="normal">,<sp/>service_prefix,<sp/>service_idx,<sp/>i);</highlight></codeline>
<codeline lineno="1162"><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/>lang<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1163"><highlight class="normal"></highlight></codeline>
<codeline lineno="1164"><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/>note<sp/>=<sp/><ref refid="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" kindref="member">linphone_presence_note_new</ref>(note_str,<sp/>lang);</highlight></codeline>
<codeline lineno="1165"><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/>presence_service_add_note(service,<sp/>note);</highlight></codeline>
<codeline lineno="1166"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(lang);</highlight></codeline>
<codeline lineno="1167"><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/>linphone_free_xml_text_content(note_str);</highlight></codeline>
<codeline lineno="1168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1170"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(note_object);</highlight></codeline>
<codeline lineno="1171"><highlight class="normal"></highlight></codeline>
<codeline lineno="1172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1173"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1174"><highlight class="normal"></highlight></codeline>
<codeline lineno="1175"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>process_pidf_xml_presence_services(xmlparsing_context_t<sp/>*xml_ctx,<sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="1176"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>xpath_str[MAX_XPATH_LENGTH];</highlight></codeline>
<codeline lineno="1177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathObjectPtr<sp/>service_object;</highlight></codeline>
<codeline lineno="1178"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service;</highlight></codeline>
<codeline lineno="1179"><highlight class="normal"><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/>*basic_status_str;</highlight></codeline>
<codeline lineno="1180"><highlight class="normal"><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/>*service_id_str;</highlight></codeline>
<codeline lineno="1181"><highlight class="normal"><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/>*timestamp_str;</highlight></codeline>
<codeline lineno="1182"><highlight class="normal"><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/>*contact_str;</highlight></codeline>
<codeline lineno="1183"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status;</highlight></codeline>
<codeline lineno="1184"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="1185"><highlight class="normal"></highlight></codeline>
<codeline lineno="1186"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>service_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/>service_prefix);</highlight></codeline>
<codeline lineno="1187"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((service_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(service_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1188"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;=<sp/>service_object-&gt;nodesetval-&gt;nodeNr;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1189"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/pidf:status/pidf:basic&quot;</highlight><highlight class="normal">,<sp/>service_prefix,<sp/>i);</highlight></codeline>
<codeline lineno="1190"><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/>basic_status_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1191"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(basic_status_str<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="1192"><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/></highlight><highlight class="keywordflow">continue</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1193"><highlight class="normal"></highlight></codeline>
<codeline lineno="1194"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(strcmp(basic_status_str,<sp/></highlight><highlight class="stringliteral">&quot;open&quot;</highlight><highlight class="normal">)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1195"><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/>basic_status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a6cb2287d4aa6ab6edf71faa60dee2bc1" kindref="member">LinphonePresenceBasicStatusOpen</ref>;</highlight></codeline>
<codeline lineno="1196"><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/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(strcmp(basic_status_str,<sp/></highlight><highlight class="stringliteral">&quot;closed&quot;</highlight><highlight class="normal">)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1197"><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/>basic_status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>;</highlight></codeline>
<codeline lineno="1198"><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/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1199"><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/></highlight><highlight class="comment">/*<sp/>Invalid<sp/>value<sp/>for<sp/>basic<sp/>status.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1200"><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/>linphone_free_xml_text_content(basic_status_str);</highlight></codeline>
<codeline lineno="1201"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-1;</highlight></codeline>
<codeline lineno="1202"><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/>}</highlight></codeline>
<codeline lineno="1203"><highlight class="normal"></highlight></codeline>
<codeline lineno="1204"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/pidf:timestamp&quot;</highlight><highlight class="normal">,<sp/>service_prefix,<sp/>i);</highlight></codeline>
<codeline lineno="1205"><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/>timestamp_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1206"><highlight class="normal"></highlight></codeline>
<codeline lineno="1207"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/pidf:contact&quot;</highlight><highlight class="normal">,<sp/>service_prefix,<sp/>i);</highlight></codeline>
<codeline lineno="1208"><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/>contact_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1209"><highlight class="normal"></highlight></codeline>
<codeline lineno="1210"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/@id&quot;</highlight><highlight class="normal">,<sp/>service_prefix,<sp/>i);</highlight></codeline>
<codeline lineno="1211"><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/>service_id_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1212"><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/>service<sp/>=<sp/>presence_service_new(service_id_str,<sp/>basic_status);</highlight></codeline>
<codeline lineno="1213"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1214"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(timestamp_str<sp/>!=<sp/>NULL)<sp/>presence_service_set_timestamp(service,<sp/>parse_timestamp(timestamp_str));</highlight></codeline>
<codeline lineno="1215"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(contact_str<sp/>!=<sp/>NULL)<sp/><ref refid="group__buddy__list_1ga7bf6a8e2ae11c778d4c469db1ae80917" kindref="member">linphone_presence_service_set_contact</ref>(service,<sp/>contact_str);</highlight></codeline>
<codeline lineno="1216"><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/>process_pidf_xml_presence_service_notes(xml_ctx,<sp/>service,<sp/>i);</highlight></codeline>
<codeline lineno="1217"><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/><ref refid="group__buddy__list_1ga2335d062c90a068b893ea9830e3d13b0" kindref="member">linphone_presence_model_add_service</ref>(model,<sp/>service);</highlight></codeline>
<codeline lineno="1218"><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/>}</highlight></codeline>
<codeline lineno="1219"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(timestamp_str<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(timestamp_str);</highlight></codeline>
<codeline lineno="1220"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(contact_str<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(contact_str);</highlight></codeline>
<codeline lineno="1221"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service_id_str<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(service_id_str);</highlight></codeline>
<codeline lineno="1222"><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/>linphone_free_xml_text_content(basic_status_str);</highlight></codeline>
<codeline lineno="1223"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(service_object);</highlight></codeline>
<codeline lineno="1226"><highlight class="normal"></highlight></codeline>
<codeline lineno="1227"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1228"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1229"><highlight class="normal"></highlight></codeline>
<codeline lineno="1230"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>bool_t<sp/>is_valid_activity_name(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*name)<sp/>{</highlight></codeline>
<codeline lineno="1231"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="1232"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/>&lt;<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(activity_map)<sp/>/<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(activity_map[0]));<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(strcmp(name,<sp/>activity_map[i].name)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1234"><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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>TRUE;</highlight></codeline>
<codeline lineno="1235"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1236"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1237"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FALSE;</highlight></codeline>
<codeline lineno="1238"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1239"><highlight class="normal"></highlight></codeline>
<codeline lineno="1240"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>process_pidf_xml_presence_person_activities(xmlparsing_context_t<sp/>*xml_ctx,<sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>person_idx)<sp/>{</highlight></codeline>
<codeline lineno="1241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>xpath_str[MAX_XPATH_LENGTH];</highlight></codeline>
<codeline lineno="1242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathObjectPtr<sp/>activities_nodes_object;</highlight></codeline>
<codeline lineno="1243"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathObjectPtr<sp/>activities_object;</highlight></codeline>
<codeline lineno="1244"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlNodePtr<sp/>activity_node;</highlight></codeline>
<codeline lineno="1245"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity;</highlight></codeline>
<codeline lineno="1246"><highlight class="normal"><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/>*description;</highlight></codeline>
<codeline lineno="1247"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,<sp/>j;</highlight></codeline>
<codeline lineno="1248"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="1249"><highlight class="normal"></highlight></codeline>
<codeline lineno="1250"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/rpid:activities&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx);</highlight></codeline>
<codeline lineno="1251"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activities_nodes_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1252"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((activities_nodes_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(activities_nodes_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1253"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;=<sp/>activities_nodes_object-&gt;nodesetval-&gt;nodeNr;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1254"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/rpid:activities[%i]/rpid:*&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx,<sp/>i);</highlight></codeline>
<codeline lineno="1255"><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/>activities_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1256"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((activities_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(activities_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1257"><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/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(j<sp/>=<sp/>0;<sp/>j<sp/>&lt;<sp/>activities_object-&gt;nodesetval-&gt;nodeNr;<sp/>j++)<sp/>{</highlight></codeline>
<codeline lineno="1258"><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/>activity_node<sp/>=<sp/>activities_object-&gt;nodesetval-&gt;nodeTab[j];</highlight></codeline>
<codeline lineno="1259"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((activity_node-&gt;name<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(is_valid_activity_name((</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)activity_node-&gt;name)<sp/>==<sp/>TRUE))<sp/>{</highlight></codeline>
<codeline lineno="1260"><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/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype;</highlight></codeline>
<codeline lineno="1261"><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/>description<sp/>=<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)xmlNodeGetContent(activity_node);</highlight></codeline>
<codeline lineno="1262"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((description<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(description[0]<sp/>==<sp/></highlight><highlight class="charliteral">&apos;\0&apos;</highlight><highlight class="normal">))<sp/>{</highlight></codeline>
<codeline lineno="1263"><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/>linphone_free_xml_text_content(description);</highlight></codeline>
<codeline lineno="1264"><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/>description<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1265"><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/>}</highlight></codeline>
<codeline lineno="1266"><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/>err<sp/>=<sp/>activity_name_to_presence_activity_type((</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)activity_node-&gt;name,<sp/>&amp;acttype);</highlight></codeline>
<codeline lineno="1267"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1268"><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/>activity<sp/>=<sp/><ref refid="group__buddy__list_1ga91719f76c70a140c0a4187c16945501f" kindref="member">linphone_presence_activity_new</ref>(acttype,<sp/>description);</highlight></codeline>
<codeline lineno="1269"><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/><ref refid="group__buddy__list_1ga3124d8045fa76284d4d7011b587f2a96" kindref="member">linphone_presence_person_add_activity</ref>(person,<sp/>activity);</highlight></codeline>
<codeline lineno="1270"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(description<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(description);</highlight></codeline>
<codeline lineno="1271"><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/>}</highlight></codeline>
<codeline lineno="1272"><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/>}</highlight></codeline>
<codeline lineno="1273"><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/>}</highlight></codeline>
<codeline lineno="1274"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activities_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(activities_object);</highlight></codeline>
<codeline lineno="1275"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1276"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1277"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1278"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activities_nodes_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(activities_nodes_object);</highlight></codeline>
<codeline lineno="1279"><highlight class="normal"></highlight></codeline>
<codeline lineno="1280"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1281"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1282"><highlight class="normal"></highlight></codeline>
<codeline lineno="1283"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>process_pidf_xml_presence_person_notes(xmlparsing_context_t<sp/>*xml_ctx,<sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>person_idx)<sp/>{</highlight></codeline>
<codeline lineno="1284"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>xpath_str[MAX_XPATH_LENGTH];</highlight></codeline>
<codeline lineno="1285"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathObjectPtr<sp/>note_object;</highlight></codeline>
<codeline lineno="1286"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note;</highlight></codeline>
<codeline lineno="1287"><highlight class="normal"><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/>*note_str;</highlight></codeline>
<codeline lineno="1288"><highlight class="normal"><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/>*lang;</highlight></codeline>
<codeline lineno="1289"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="1290"><highlight class="normal"></highlight></codeline>
<codeline lineno="1291"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/rpid:activities/rpid:note&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx);</highlight></codeline>
<codeline lineno="1292"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1293"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((note_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(note_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1294"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;=<sp/>note_object-&gt;nodesetval-&gt;nodeNr;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1295"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/rpid:activities/rpid:note[%i]&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx,<sp/>i);</highlight></codeline>
<codeline lineno="1296"><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/>note_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1297"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_str<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">continue</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1298"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/rpid:activities/rpid:note[%i]/@xml:lang&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx,<sp/>i);</highlight></codeline>
<codeline lineno="1299"><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/>lang<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1300"><highlight class="normal"></highlight></codeline>
<codeline lineno="1301"><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/>note<sp/>=<sp/><ref refid="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" kindref="member">linphone_presence_note_new</ref>(note_str,<sp/>lang);</highlight></codeline>
<codeline lineno="1302"><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/>presence_person_add_activities_note(person,<sp/>note);</highlight></codeline>
<codeline lineno="1303"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(lang);</highlight></codeline>
<codeline lineno="1304"><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/>linphone_free_xml_text_content(note_str);</highlight></codeline>
<codeline lineno="1305"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1306"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(note_object);</highlight></codeline>
<codeline lineno="1308"><highlight class="normal"></highlight></codeline>
<codeline lineno="1309"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/dm:note&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx);</highlight></codeline>
<codeline lineno="1310"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1311"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((note_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(note_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1312"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;=<sp/>note_object-&gt;nodesetval-&gt;nodeNr;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1313"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/dm:note[%i]&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx,<sp/>i);</highlight></codeline>
<codeline lineno="1314"><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/>note_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1315"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_str<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">continue</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1316"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/dm:note[%i]/@xml:lang&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>person_idx,<sp/>i);</highlight></codeline>
<codeline lineno="1317"><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/>lang<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1318"><highlight class="normal"></highlight></codeline>
<codeline lineno="1319"><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/>note<sp/>=<sp/><ref refid="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" kindref="member">linphone_presence_note_new</ref>(note_str,<sp/>lang);</highlight></codeline>
<codeline lineno="1320"><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/>presence_person_add_note(person,<sp/>note);</highlight></codeline>
<codeline lineno="1321"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(lang);</highlight></codeline>
<codeline lineno="1322"><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/>linphone_free_xml_text_content(note_str);</highlight></codeline>
<codeline lineno="1323"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1324"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(note_object);</highlight></codeline>
<codeline lineno="1326"><highlight class="normal"></highlight></codeline>
<codeline lineno="1327"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1328"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1329"><highlight class="normal"></highlight></codeline>
<codeline lineno="1330"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>process_pidf_xml_presence_persons(xmlparsing_context_t<sp/>*xml_ctx,<sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="1331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>xpath_str[MAX_XPATH_LENGTH];</highlight></codeline>
<codeline lineno="1332"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathObjectPtr<sp/>person_object;</highlight></codeline>
<codeline lineno="1333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person;</highlight></codeline>
<codeline lineno="1334"><highlight class="normal"><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/>*person_id_str;</highlight></codeline>
<codeline lineno="1335"><highlight class="normal"><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/>*person_timestamp_str;</highlight></codeline>
<codeline lineno="1336"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>time_t<sp/>timestamp;</highlight></codeline>
<codeline lineno="1337"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="1338"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="1339"><highlight class="normal"></highlight></codeline>
<codeline lineno="1340"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>person_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/>person_prefix);</highlight></codeline>
<codeline lineno="1341"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(person_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1342"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;=<sp/>person_object-&gt;nodesetval-&gt;nodeNr;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1343"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/@id&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>i);</highlight></codeline>
<codeline lineno="1344"><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/>person_id_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1345"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;%s[%i]/pidf:timestamp&quot;</highlight><highlight class="normal">,<sp/>person_prefix,<sp/>i);</highlight></codeline>
<codeline lineno="1346"><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/>person_timestamp_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1347"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person_timestamp_str<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="1348"><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/>timestamp<sp/>=<sp/>time(NULL);</highlight></codeline>
<codeline lineno="1349"><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/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1350"><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/>timestamp<sp/>=<sp/>parse_timestamp(person_timestamp_str);</highlight></codeline>
<codeline lineno="1351"><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/>person<sp/>=<sp/>presence_person_new(person_id_str,<sp/>timestamp);</highlight></codeline>
<codeline lineno="1352"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1353"><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/>err<sp/>=<sp/>process_pidf_xml_presence_person_activities(xml_ctx,<sp/>person,<sp/>i);</highlight></codeline>
<codeline lineno="1354"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1355"><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/>err<sp/>=<sp/>process_pidf_xml_presence_person_notes(xml_ctx,<sp/>person,<sp/>i);</highlight></codeline>
<codeline lineno="1356"><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/>}</highlight></codeline>
<codeline lineno="1357"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1358"><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/>presence_model_add_person(model,<sp/>person);</highlight></codeline>
<codeline lineno="1359"><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/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1360"><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/><ref refid="group__buddy__list_1gacf352cdad5877cf9cbb1e910eaf8b626" kindref="member">linphone_presence_person_unref</ref>(person);</highlight></codeline>
<codeline lineno="1361"><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/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1362"><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/>}</highlight></codeline>
<codeline lineno="1363"><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/>}</highlight></codeline>
<codeline lineno="1364"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person_id_str<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(person_id_str);</highlight></codeline>
<codeline lineno="1365"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person_timestamp_str<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(person_timestamp_str);</highlight></codeline>
<codeline lineno="1366"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1367"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1368"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(person_object);</highlight></codeline>
<codeline lineno="1369"><highlight class="normal"></highlight></codeline>
<codeline lineno="1370"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1371"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Remove<sp/>all<sp/>the<sp/>persons<sp/>added<sp/>since<sp/>there<sp/>was<sp/>an<sp/>error.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1372"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterateFunc)<ref refid="group__buddy__list_1gacf352cdad5877cf9cbb1e910eaf8b626" kindref="member">linphone_presence_person_unref</ref>);</highlight></codeline>
<codeline lineno="1373"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1374"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1375"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1376"><highlight class="normal"></highlight></codeline>
<codeline lineno="1377"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>process_pidf_xml_presence_notes(xmlparsing_context_t<sp/>*xml_ctx,<sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model)<sp/>{</highlight></codeline>
<codeline lineno="1378"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>xpath_str[MAX_XPATH_LENGTH];</highlight></codeline>
<codeline lineno="1379"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathObjectPtr<sp/>note_object;</highlight></codeline>
<codeline lineno="1380"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note;</highlight></codeline>
<codeline lineno="1381"><highlight class="normal"><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/>*note_str;</highlight></codeline>
<codeline lineno="1382"><highlight class="normal"><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/>*lang;</highlight></codeline>
<codeline lineno="1383"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="1384"><highlight class="normal"></highlight></codeline>
<codeline lineno="1385"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>note_object<sp/>=<sp/>linphone_get_xml_xpath_object_for_node_list(xml_ctx,<sp/></highlight><highlight class="stringliteral">&quot;/pidf:presence/pidf:note&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1386"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((note_object<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(note_object-&gt;nodesetval<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1387"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>1;<sp/>i<sp/>&lt;=<sp/>note_object-&gt;nodesetval-&gt;nodeNr;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="1388"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;/pidf:presence/pidf:note[%i]&quot;</highlight><highlight class="normal">,<sp/>i);</highlight></codeline>
<codeline lineno="1389"><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/>note_str<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1390"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_str<sp/>==<sp/>NULL)<sp/></highlight><highlight class="keywordflow">continue</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1391"><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/>snprintf(xpath_str,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(xpath_str),<sp/></highlight><highlight class="stringliteral">&quot;/pidf:presence/pidf:note[%i]/@xml:lang&quot;</highlight><highlight class="normal">,<sp/>i);</highlight></codeline>
<codeline lineno="1392"><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/>lang<sp/>=<sp/>linphone_get_xml_text_content(xml_ctx,<sp/>xpath_str);</highlight></codeline>
<codeline lineno="1393"><highlight class="normal"></highlight></codeline>
<codeline lineno="1394"><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/>note<sp/>=<sp/><ref refid="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" kindref="member">linphone_presence_note_new</ref>(note_str,<sp/>lang);</highlight></codeline>
<codeline lineno="1395"><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/>presence_model_add_note(model,<sp/>note);</highlight></codeline>
<codeline lineno="1396"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lang<sp/>!=<sp/>NULL)<sp/>linphone_free_xml_text_content(lang);</highlight></codeline>
<codeline lineno="1397"><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/>linphone_free_xml_text_content(note_str);</highlight></codeline>
<codeline lineno="1398"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1399"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1400"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(note_object<sp/>!=<sp/>NULL)<sp/>xmlXPathFreeObject(note_object);</highlight></codeline>
<codeline lineno="1401"><highlight class="normal"></highlight></codeline>
<codeline lineno="1402"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1403"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1404"><highlight class="normal"></highlight></codeline>
<codeline lineno="1405"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/>process_pidf_xml_presence_notification(xmlparsing_context_t<sp/>*xml_ctx)<sp/>{</highlight></codeline>
<codeline lineno="1406"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1407"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1408"><highlight class="normal"></highlight></codeline>
<codeline lineno="1409"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(linphone_create_xml_xpath_context(xml_ctx)<sp/>&lt;<sp/>0)</highlight></codeline>
<codeline lineno="1410"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="1411"><highlight class="normal"></highlight></codeline>
<codeline lineno="1412"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model<sp/>=<sp/><ref refid="group__buddy__list_1gaafdc5ae622acaadbf1e58415756d9fa3" kindref="member">linphone_presence_model_new</ref>();</highlight></codeline>
<codeline lineno="1413"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathRegisterNs(xml_ctx-&gt;xpath_ctx,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;pidf&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;urn:ietf:params:xml:ns:pidf&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1414"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathRegisterNs(xml_ctx-&gt;xpath_ctx,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;dm&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;urn:ietf:params:xml:ns:pidf:data-model&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1415"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlXPathRegisterNs(xml_ctx-&gt;xpath_ctx,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;rpid&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;urn:ietf:params:xml:ns:pidf:rpid&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1416"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>process_pidf_xml_presence_services(xml_ctx,<sp/>model);</highlight></codeline>
<codeline lineno="1417"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1418"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>process_pidf_xml_presence_persons(xml_ctx,<sp/>model);</highlight></codeline>
<codeline lineno="1419"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1420"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1421"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>process_pidf_xml_presence_notes(xml_ctx,<sp/>model);</highlight></codeline>
<codeline lineno="1422"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1423"><highlight class="normal"></highlight></codeline>
<codeline lineno="1424"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1425"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga8c6c14fe45f6941149ed3eb759db9a23" kindref="member">linphone_presence_model_unref</ref>(model);</highlight></codeline>
<codeline lineno="1426"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1427"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1428"><highlight class="normal"></highlight></codeline>
<codeline lineno="1429"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>model;</highlight></codeline>
<codeline lineno="1430"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1431"><highlight class="normal"></highlight></codeline>
<codeline lineno="1432"><highlight class="normal"></highlight></codeline>
<codeline lineno="1433"><highlight class="normal"></highlight></codeline>
<codeline lineno="1434"><highlight class="normal"></highlight></codeline>
<codeline lineno="1435"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_core_add_subscriber(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*subscriber,<sp/>SalOp<sp/>*op){</highlight></codeline>
<codeline lineno="1436"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref><sp/>*fl=<ref refid="group__buddy__list_1ga3ae7874468573bd58d93069439578f59" kindref="member">linphone_friend_new_with_address</ref>(subscriber);</highlight></codeline>
<codeline lineno="1437"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fl==NULL)<sp/>return<sp/>;</highlight></codeline>
<codeline lineno="1438"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fl-&gt;insub=op;</highlight></codeline>
<codeline lineno="1439"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga9ab0c9222edcc0a8e25fb068aee88bc0" kindref="member">linphone_friend_set_inc_subscribe_policy</ref>(fl,<ref refid="group__buddy__list_1gga81effcfcab907fd8530e53ca5b0bc10aa876507f111b9ea7c5fb4eac01bac22dd" kindref="member">LinphoneSPAccept</ref>);</highlight></codeline>
<codeline lineno="1440"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fl-&gt;inc_subscribe_pending=TRUE;</highlight></codeline>
<codeline lineno="1441"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lc-&gt;subscribers=ms_list_append(lc-&gt;subscribers,(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)fl);</highlight></codeline>
<codeline lineno="1442"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline lineno="1443"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*tmp=<ref refid="group__linphone__address_1ga24c1a16f49f8b72f2bab65cc5d8a51af" kindref="member">linphone_address_as_string</ref>(fl-&gt;uri);</highlight></codeline>
<codeline lineno="1444"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>linphone_core_notify_new_subscription_requested(lc,fl,tmp);</highlight></codeline>
<codeline lineno="1445"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(tmp);</highlight></codeline>
<codeline lineno="1446"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1447"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1448"><highlight class="normal"></highlight></codeline>
<codeline lineno="1449"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga4d308687e043ea48e2ae83a3679857fc" kindref="member">linphone_core_reject_subscriber</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref><sp/>*lf){</highlight></codeline>
<codeline lineno="1450"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga9ab0c9222edcc0a8e25fb068aee88bc0" kindref="member">linphone_friend_set_inc_subscribe_policy</ref>(lf,<ref refid="group__buddy__list_1gga81effcfcab907fd8530e53ca5b0bc10aa94cf7013f58a5ad7ec8859afc3da9d72" kindref="member">LinphoneSPDeny</ref>);</highlight></codeline>
<codeline lineno="1451"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1452"><highlight class="normal"></highlight></codeline>
<codeline lineno="1453"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaa76897f8107633a3d05746c45a957817" kindref="member">linphone_core_notify_all_friends</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*presence){</highlight></codeline>
<codeline lineno="1454"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MSList<sp/>*elem;</highlight></codeline>
<codeline lineno="1455"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity<sp/>=<sp/><ref refid="group__buddy__list_1gae44a7723cc5843954981878e0ff654fd" kindref="member">linphone_presence_model_get_activity</ref>(presence);</highlight></codeline>
<codeline lineno="1456"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*activity_str<sp/>=<sp/><ref refid="group__buddy__list_1ga5b72ce9ec921a464eb7840ac35cee278" kindref="member">linphone_presence_activity_to_string</ref>(activity);</highlight></codeline>
<codeline lineno="1457"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_message(</highlight><highlight class="stringliteral">&quot;Notifying<sp/>all<sp/>friends<sp/>that<sp/>we<sp/>are<sp/>[%s]&quot;</highlight><highlight class="normal">,<sp/>activity_str);</highlight></codeline>
<codeline lineno="1458"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity_str<sp/>!=<sp/>NULL)<sp/>ms_free(activity_str);</highlight></codeline>
<codeline lineno="1459"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal">(elem=lc-&gt;friends;elem!=NULL;elem=elem-&gt;next){</highlight></codeline>
<codeline lineno="1460"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref><sp/>*lf=(<ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref><sp/>*)elem-&gt;data;</highlight></codeline>
<codeline lineno="1461"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>(lf-&gt;insub){</highlight></codeline>
<codeline lineno="1462"><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/>linphone_friend_notify(lf,presence);</highlight></codeline>
<codeline lineno="1463"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1464"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1465"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1466"><highlight class="normal"></highlight></codeline>
<codeline lineno="1467"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_subscription_new(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/>SalOp<sp/>*op,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*from){</highlight></codeline>
<codeline lineno="1468"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref><sp/>*lf=NULL;</highlight></codeline>
<codeline lineno="1469"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*tmp;</highlight></codeline>
<codeline lineno="1470"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__linphone__address_1ga5af5a516ac253e3cda4f51b599a5385b" kindref="member">LinphoneAddress</ref><sp/>*uri;</highlight></codeline>
<codeline lineno="1471"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__proxies_1ga1879a0d59e068457b688138da97f2d0b" kindref="member">LinphoneProxyConfig</ref><sp/>*cfg;</highlight></codeline>
<codeline lineno="1472"><highlight class="normal"></highlight></codeline>
<codeline lineno="1473"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>uri=<ref refid="group__linphone__address_1ga301c9884c0bc8b1050fe790d424e0b49" kindref="member">linphone_address_new</ref>(from);</highlight></codeline>
<codeline lineno="1474"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__linphone__address_1gacd575aa16b3458037ff71794812048d3" kindref="member">linphone_address_clean</ref>(uri);</highlight></codeline>
<codeline lineno="1475"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp=<ref refid="group__linphone__address_1ga24c1a16f49f8b72f2bab65cc5d8a51af" kindref="member">linphone_address_as_string</ref>(uri);</highlight></codeline>
<codeline lineno="1476"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_message(</highlight><highlight class="stringliteral">&quot;Receiving<sp/>new<sp/>subscription<sp/>from<sp/>%s.&quot;</highlight><highlight class="normal">,from);</highlight></codeline>
<codeline lineno="1477"><highlight class="normal"></highlight></codeline>
<codeline lineno="1478"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cfg=linphone_core_lookup_known_proxy(lc,uri);</highlight></codeline>
<codeline lineno="1479"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(cfg!=NULL){</highlight></codeline>
<codeline lineno="1480"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(cfg-&gt;op){</highlight></codeline>
<codeline lineno="1481"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(sal_op_get_contact_address(cfg-&gt;op))<sp/>{</highlight></codeline>
<codeline lineno="1482"><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/>sal_op_set_contact_address<sp/>(op,sal_op_get_contact_address(cfg-&gt;op));</highlight></codeline>
<codeline lineno="1483"><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/>ms_message(</highlight><highlight class="stringliteral">&quot;Contact<sp/>for<sp/>next<sp/>subscribe<sp/>answer<sp/>has<sp/>been<sp/>fixed<sp/>using<sp/>proxy<sp/>&quot;</highlight><highlight class="comment">/*to<sp/>%s&quot;,fixed_contact*/</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1484"><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/>}</highlight></codeline>
<codeline lineno="1485"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1486"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1487"><highlight class="normal"></highlight></codeline>
<codeline lineno="1488"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>check<sp/>if<sp/>we<sp/>answer<sp/>to<sp/>this<sp/>subscription<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1489"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(linphone_find_friend_by_address(lc-&gt;friends,uri,&amp;lf)!=NULL){</highlight></codeline>
<codeline lineno="1490"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf-&gt;insub=op;</highlight></codeline>
<codeline lineno="1491"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf-&gt;inc_subscribe_pending=TRUE;</highlight></codeline>
<codeline lineno="1492"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>sal_subscribe_accept(op);</highlight></codeline>
<codeline lineno="1493"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga6e28513bba28f948ee61341384a36958" kindref="member">linphone_friend_done</ref>(lf);<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*this<sp/>will<sp/>do<sp/>all<sp/>necessary<sp/>actions<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1494"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight><highlight class="keywordflow">else</highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="1495"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>check<sp/>if<sp/>this<sp/>subscriber<sp/>is<sp/>in<sp/>our<sp/>black<sp/>list<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1496"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(linphone_find_friend_by_address(lc-&gt;subscribers,uri,&amp;lf)){</highlight></codeline>
<codeline lineno="1497"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lf-&gt;pol==<ref refid="group__buddy__list_1gga81effcfcab907fd8530e53ca5b0bc10aa94cf7013f58a5ad7ec8859afc3da9d72" kindref="member">LinphoneSPDeny</ref>){</highlight></codeline>
<codeline lineno="1498"><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/>ms_message(</highlight><highlight class="stringliteral">&quot;Rejecting<sp/>%s<sp/>because<sp/>we<sp/>already<sp/>rejected<sp/>it<sp/>once.&quot;</highlight><highlight class="normal">,from);</highlight></codeline>
<codeline lineno="1499"><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/>sal_subscribe_decline(op,SalReasonDeclined);</highlight></codeline>
<codeline lineno="1500"><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/>}</highlight></codeline>
<codeline lineno="1501"><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/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1502"><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/></highlight><highlight class="comment">/*<sp/>else<sp/>it<sp/>is<sp/>in<sp/>wait<sp/>for<sp/>approval<sp/>state,<sp/>because<sp/>otherwise<sp/>it<sp/>is<sp/>in<sp/>the<sp/>friend<sp/>list.*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1503"><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/>ms_message(</highlight><highlight class="stringliteral">&quot;New<sp/>subscriber<sp/>found<sp/>in<sp/>friend<sp/>list,<sp/>in<sp/>%s<sp/>state.&quot;</highlight><highlight class="normal">,__policy_enum_to_str(lf-&gt;pol));</highlight></codeline>
<codeline lineno="1504"><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/>}</highlight></codeline>
<codeline lineno="1505"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1506"><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/>sal_subscribe_accept(op);</highlight></codeline>
<codeline lineno="1507"><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/>linphone_core_add_subscriber(lc,tmp,op);</highlight></codeline>
<codeline lineno="1508"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1509"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1510"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__linphone__address_1ga5777f2976c71a48cf2b3f03c61818f13" kindref="member">linphone_address_destroy</ref>(uri);</highlight></codeline>
<codeline lineno="1511"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(tmp);</highlight></codeline>
<codeline lineno="1512"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1513"><highlight class="normal"></highlight></codeline>
<codeline lineno="1514"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_notify_parse_presence(SalOp<sp/>*op,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*content_type,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*content_subtype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*body,<sp/>SalPresenceModel<sp/>**result)<sp/>{</highlight></codeline>
<codeline lineno="1515"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlparsing_context_t<sp/>*xml_ctx;</highlight></codeline>
<codeline lineno="1516"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1517"><highlight class="normal"></highlight></codeline>
<codeline lineno="1518"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(strcmp(content_type,<sp/></highlight><highlight class="stringliteral">&quot;application&quot;</highlight><highlight class="normal">)<sp/>!=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1519"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*result<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1520"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1521"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1522"><highlight class="normal"></highlight></codeline>
<codeline lineno="1523"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(strcmp(content_subtype,<sp/></highlight><highlight class="stringliteral">&quot;pidf+xml&quot;</highlight><highlight class="normal">)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1524"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xml_ctx<sp/>=<sp/>linphone_xmlparsing_context_new();</highlight></codeline>
<codeline lineno="1525"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlSetGenericErrorFunc(xml_ctx,<sp/>linphone_xmlparsing_genericxml_error);</highlight></codeline>
<codeline lineno="1526"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xml_ctx-&gt;doc<sp/>=<sp/>xmlReadDoc((</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*)body,<sp/>0,<sp/>NULL,<sp/>0);</highlight></codeline>
<codeline lineno="1527"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(xml_ctx-&gt;doc<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1528"><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/>model<sp/>=<sp/>process_pidf_xml_presence_notification(xml_ctx);</highlight></codeline>
<codeline lineno="1529"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1530"><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/>ms_warning(</highlight><highlight class="stringliteral">&quot;Wrongly<sp/>formatted<sp/>presence<sp/>XML:<sp/>%s&quot;</highlight><highlight class="normal">,<sp/>xml_ctx-&gt;errorBuffer);</highlight></codeline>
<codeline lineno="1531"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1532"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>linphone_xmlparsing_context_destroy(xml_ctx);</highlight></codeline>
<codeline lineno="1533"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1534"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_error(</highlight><highlight class="stringliteral">&quot;Unknown<sp/>content<sp/>type<sp/>&apos;%s/%s&apos;<sp/>for<sp/>presence&quot;</highlight><highlight class="normal">,<sp/>content_type,<sp/>content_subtype);</highlight></codeline>
<codeline lineno="1535"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1536"><highlight class="normal"></highlight></codeline>
<codeline lineno="1537"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>If<sp/>no<sp/>activities<sp/>are<sp/>present<sp/>in<sp/>the<sp/>model,<sp/>add<sp/>a<sp/>dummy<sp/>activity<sp/>so<sp/>that<sp/>linphone_presence_activity_get_type()<sp/>returns</highlight></codeline>
<codeline lineno="1538"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>the<sp/>expected<sp/>result.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1539"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(model<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1540"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity<sp/>=<sp/><ref refid="group__buddy__list_1gae44a7723cc5843954981878e0ff654fd" kindref="member">linphone_presence_model_get_activity</ref>(model);</highlight></codeline>
<codeline lineno="1541"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1542"><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/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status<sp/>=<sp/><ref refid="group__buddy__list_1ga396ad42678b4c876ac7b1824782d2942" kindref="member">linphone_presence_model_get_basic_status</ref>(model);</highlight></codeline>
<codeline lineno="1543"><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/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype;</highlight></codeline>
<codeline lineno="1544"><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/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(basic_status)<sp/>{</highlight></codeline>
<codeline lineno="1545"><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/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a6cb2287d4aa6ab6edf71faa60dee2bc1" kindref="member">LinphonePresenceBasicStatusOpen</ref>:</highlight></codeline>
<codeline lineno="1546"><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/>acttype<sp/>=<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca005609d9063ce6807e4532e363d9801f" kindref="member">LinphonePresenceActivityOnline</ref>;</highlight></codeline>
<codeline lineno="1547"><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/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1548"><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/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>:</highlight></codeline>
<codeline lineno="1549"><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/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="1550"><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/>acttype<sp/>=<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acae6c23b48f5e845a1892985da5844aae3" kindref="member">LinphonePresenceActivityOffline</ref>;</highlight></codeline>
<codeline lineno="1551"><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/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1552"><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/>}</highlight></codeline>
<codeline lineno="1553"><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/>activity<sp/>=<sp/><ref refid="group__buddy__list_1ga91719f76c70a140c0a4187c16945501f" kindref="member">linphone_presence_activity_new</ref>(acttype,<sp/>NULL);</highlight></codeline>
<codeline lineno="1554"><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/><ref refid="group__buddy__list_1ga97a070251ca232a6eabe9f31e01f7086" kindref="member">linphone_presence_model_add_activity</ref>(model,<sp/>activity);</highlight></codeline>
<codeline lineno="1555"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1556"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1557"><highlight class="normal"></highlight></codeline>
<codeline lineno="1558"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*result<sp/>=<sp/>(SalPresenceModel<sp/>*)model;</highlight></codeline>
<codeline lineno="1559"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1560"><highlight class="normal"></highlight></codeline>
<codeline lineno="1561"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_service_obj_st<sp/>{</highlight></codeline>
<codeline lineno="1562"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlTextWriterPtr<sp/>writer;</highlight></codeline>
<codeline lineno="1563"><highlight class="normal"><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/>*contact;</highlight></codeline>
<codeline lineno="1564"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*err;</highlight></codeline>
<codeline lineno="1565"><highlight class="normal">};</highlight></codeline>
<codeline lineno="1566"><highlight class="normal"></highlight></codeline>
<codeline lineno="1567"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_person_obj_st<sp/>{</highlight></codeline>
<codeline lineno="1568"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlTextWriterPtr<sp/>writer;</highlight></codeline>
<codeline lineno="1569"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*err;</highlight></codeline>
<codeline lineno="1570"><highlight class="normal">};</highlight></codeline>
<codeline lineno="1571"><highlight class="normal"></highlight></codeline>
<codeline lineno="1572"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_activity_obj_st<sp/>{</highlight></codeline>
<codeline lineno="1573"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlTextWriterPtr<sp/>writer;</highlight></codeline>
<codeline lineno="1574"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*err;</highlight></codeline>
<codeline lineno="1575"><highlight class="normal">};</highlight></codeline>
<codeline lineno="1576"><highlight class="normal"></highlight></codeline>
<codeline lineno="1577"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_note_obj_st<sp/>{</highlight></codeline>
<codeline lineno="1578"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlTextWriterPtr<sp/>writer;</highlight></codeline>
<codeline lineno="1579"><highlight class="normal"><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/>*ns;</highlight></codeline>
<codeline lineno="1580"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*err;</highlight></codeline>
<codeline lineno="1581"><highlight class="normal">};</highlight></codeline>
<codeline lineno="1582"><highlight class="normal"></highlight></codeline>
<codeline lineno="1583"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>write_xml_presence_note(xmlTextWriterPtr<sp/>writer,<sp/><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*ns)<sp/>{</highlight></codeline>
<codeline lineno="1584"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1585"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ns<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1586"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElement(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;note&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1587"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1588"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElementNS(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)ns,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;note&quot;</highlight><highlight class="normal">,<sp/>NULL);</highlight></codeline>
<codeline lineno="1589"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1590"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(note-&gt;lang<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1591"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteAttributeNS(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;xml&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;lang&quot;</highlight><highlight class="normal">,<sp/>NULL,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)note-&gt;lang);</highlight></codeline>
<codeline lineno="1592"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1593"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1594"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteString(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)note-&gt;content);</highlight></codeline>
<codeline lineno="1595"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1596"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1597"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1598"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1599"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1600"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1601"><highlight class="normal"></highlight></codeline>
<codeline lineno="1602"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>write_xml_presence_note_obj(<ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*note,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_presence_note_obj_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="1603"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>write_xml_presence_note(st-&gt;writer,<sp/>note,<sp/>st-&gt;ns);</highlight></codeline>
<codeline lineno="1604"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/>*st-&gt;err<sp/>=<sp/>err;</highlight></codeline>
<codeline lineno="1605"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1606"><highlight class="normal"></highlight></codeline>
<codeline lineno="1607"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>write_xml_presence_timestamp(xmlTextWriterPtr<sp/>writer,<sp/>time_t<sp/>timestamp)<sp/>{</highlight></codeline>
<codeline lineno="1608"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1609"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*timestamp_str<sp/>=<sp/>linphone_timestamp_to_rfc3339_string(timestamp);</highlight></codeline>
<codeline lineno="1610"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteElement(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;timestamp&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)timestamp_str);</highlight></codeline>
<codeline lineno="1611"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(timestamp_str)<sp/>ms_free(timestamp_str);</highlight></codeline>
<codeline lineno="1612"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1613"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1614"><highlight class="normal"></highlight></codeline>
<codeline lineno="1615"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>write_xml_presence_service(xmlTextWriterPtr<sp/>writer,<sp/><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact)<sp/>{</highlight></codeline>
<codeline lineno="1616"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>xmlTextWriterStartElement(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;tuple&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1617"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1618"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((service<sp/>==<sp/>NULL)<sp/>||<sp/>(service-&gt;id<sp/>==<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1619"><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/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*text<sp/>=<sp/>generate_presence_id();</highlight></codeline>
<codeline lineno="1620"><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/>err<sp/>=<sp/>xmlTextWriterWriteAttribute(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)text);</highlight></codeline>
<codeline lineno="1621"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(text<sp/>!=<sp/>NULL)<sp/>ms_free(text);</highlight></codeline>
<codeline lineno="1622"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1623"><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/>err<sp/>=<sp/>xmlTextWriterWriteAttribute(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)service-&gt;id);</highlight></codeline>
<codeline lineno="1624"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1625"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1626"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1627"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElement(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;status&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1628"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1629"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1630"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status<sp/>=<sp/><ref refid="group__buddy__list_1gga1bce4ac7547b3459c2815a5a38fab833a4e18f5d7cb3e86bc7bde635d190a0175" kindref="member">LinphonePresenceBasicStatusClosed</ref>;</highlight></codeline>
<codeline lineno="1631"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>!=<sp/>NULL)<sp/>basic_status<sp/>=<sp/>service-&gt;status;</highlight></codeline>
<codeline lineno="1632"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteElement(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;basic&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)presence_basic_status_to_string(basic_status));</highlight></codeline>
<codeline lineno="1633"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1634"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1635"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Close<sp/>the<sp/>&quot;status&quot;<sp/>element.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1636"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1637"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1638"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1639"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElement(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;contact&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1640"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1641"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1642"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteAttribute(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;priority&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;0.8&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1643"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1644"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1645"><highlight class="normal"><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/>*contact_str;</highlight></codeline>
<codeline lineno="1646"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((service<sp/>==<sp/>NULL)<sp/>||<sp/>(service-&gt;contact<sp/>==<sp/>NULL))</highlight></codeline>
<codeline lineno="1647"><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/>contact_str<sp/>=<sp/>contact;</highlight></codeline>
<codeline lineno="1648"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1649"><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/>contact_str<sp/>=<sp/>service-&gt;contact;</highlight></codeline>
<codeline lineno="1650"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteString(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)contact_str);</highlight></codeline>
<codeline lineno="1651"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1652"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1653"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Close<sp/>the<sp/>&quot;contact&quot;<sp/>element.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1654"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1655"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1656"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(service<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/>(service-&gt;notes<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1657"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_note_obj_st<sp/>st;</highlight></codeline>
<codeline lineno="1658"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.writer<sp/>=<sp/>writer;</highlight></codeline>
<codeline lineno="1659"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.ns<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1660"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.err<sp/>=<sp/>&amp;err;</highlight></codeline>
<codeline lineno="1661"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(service-&gt;notes,<sp/>(MSIterate2Func)write_xml_presence_note_obj,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="1662"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1663"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1664"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(service<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="1665"><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/>err<sp/>=<sp/>write_xml_presence_timestamp(writer,<sp/>time(NULL));</highlight></codeline>
<codeline lineno="1666"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1667"><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/>err<sp/>=<sp/>write_xml_presence_timestamp(writer,<sp/>service-&gt;timestamp);</highlight></codeline>
<codeline lineno="1668"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1669"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1670"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Close<sp/>the<sp/>&quot;tuple&quot;<sp/>element.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1671"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1672"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1673"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1674"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1675"><highlight class="normal"></highlight></codeline>
<codeline lineno="1676"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>bool_t<sp/>is_valid_activity(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="1677"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((activity-&gt;type<sp/>==<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acae6c23b48f5e845a1892985da5844aae3" kindref="member">LinphonePresenceActivityOffline</ref>)<sp/>||<sp/>(activity-&gt;type<sp/>==<sp/><ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641aca005609d9063ce6807e4532e363d9801f" kindref="member">LinphonePresenceActivityOnline</ref>))</highlight></codeline>
<codeline lineno="1678"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FALSE;</highlight></codeline>
<codeline lineno="1679"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>TRUE;</highlight></codeline>
<codeline lineno="1680"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1681"><highlight class="normal"></highlight></codeline>
<codeline lineno="1682"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>write_xml_presence_activity(xmlTextWriterPtr<sp/>writer,<sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity)<sp/>{</highlight></codeline>
<codeline lineno="1683"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1684"><highlight class="normal"></highlight></codeline>
<codeline lineno="1685"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_valid_activity(activity)<sp/>==<sp/>FALSE)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1686"><highlight class="normal"></highlight></codeline>
<codeline lineno="1687"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElementNS(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;rpid&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="1688"><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/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)presence_activity_type_to_string(activity-&gt;type),<sp/>NULL);</highlight></codeline>
<codeline lineno="1689"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(activity-&gt;description<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1690"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteString(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)activity-&gt;description);</highlight></codeline>
<codeline lineno="1691"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1692"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1693"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1694"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1695"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1696"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1697"><highlight class="normal"></highlight></codeline>
<codeline lineno="1698"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>write_xml_presence_activity_obj(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_presence_activity_obj_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="1699"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>write_xml_presence_activity(st-&gt;writer,<sp/>activity);</highlight></codeline>
<codeline lineno="1700"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/>*st-&gt;err<sp/>=<sp/>err;</highlight></codeline>
<codeline lineno="1701"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1702"><highlight class="normal"></highlight></codeline>
<codeline lineno="1703"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>person_has_valid_activity(<ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity,<sp/>bool_t<sp/>*has_valid_activities)<sp/>{</highlight></codeline>
<codeline lineno="1704"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(is_valid_activity(activity)<sp/>==<sp/>TRUE)<sp/>*has_valid_activities<sp/>=<sp/>TRUE;</highlight></codeline>
<codeline lineno="1705"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1706"><highlight class="normal"></highlight></codeline>
<codeline lineno="1707"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>bool_t<sp/>person_has_valid_activities(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="1708"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>bool_t<sp/>has_valid_activities<sp/>=<sp/>FALSE;</highlight></codeline>
<codeline lineno="1709"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(person-&gt;activities,<sp/>(MSIterate2Func)person_has_valid_activity,<sp/>&amp;has_valid_activities);</highlight></codeline>
<codeline lineno="1710"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>has_valid_activities;</highlight></codeline>
<codeline lineno="1711"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1712"><highlight class="normal"></highlight></codeline>
<codeline lineno="1713"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>write_xml_presence_person(xmlTextWriterPtr<sp/>writer,<sp/><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person)<sp/>{</highlight></codeline>
<codeline lineno="1714"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1715"><highlight class="normal"></highlight></codeline>
<codeline lineno="1716"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((person_has_valid_activities(person)<sp/>==<sp/>FALSE)<sp/>&amp;&amp;<sp/>(person-&gt;notes<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="1717"><highlight class="normal"></highlight></codeline>
<codeline lineno="1718"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElementNS(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;dm&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;person&quot;</highlight><highlight class="normal">,<sp/>NULL);</highlight></codeline>
<codeline lineno="1719"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1720"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(person-&gt;id<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1721"><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/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*text<sp/>=<sp/>generate_presence_id();</highlight></codeline>
<codeline lineno="1722"><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/>err<sp/>=<sp/>xmlTextWriterWriteAttribute(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)text);</highlight></codeline>
<codeline lineno="1723"><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/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(text<sp/>!=<sp/>NULL)<sp/>ms_free(text);</highlight></codeline>
<codeline lineno="1724"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1725"><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/>err<sp/>=<sp/>xmlTextWriterWriteAttribute(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)person-&gt;id);</highlight></codeline>
<codeline lineno="1726"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1727"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1728"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>((person-&gt;activities_notes<sp/>!=<sp/>NULL)<sp/>||<sp/>(person_has_valid_activities(person)<sp/>==<sp/>TRUE)))<sp/>{</highlight></codeline>
<codeline lineno="1729"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElementNS(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;rpid&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;activities&quot;</highlight><highlight class="normal">,<sp/>NULL);</highlight></codeline>
<codeline lineno="1730"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(person-&gt;activities_notes<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1731"><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/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_note_obj_st<sp/>st;</highlight></codeline>
<codeline lineno="1732"><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/>st.writer<sp/>=<sp/>writer;</highlight></codeline>
<codeline lineno="1733"><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/>st.ns<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;rpid&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1734"><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/>st.err<sp/>=<sp/>&amp;err;</highlight></codeline>
<codeline lineno="1735"><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/>ms_list_for_each2(person-&gt;activities_notes,<sp/>(MSIterate2Func)write_xml_presence_note_obj,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="1736"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1737"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(person-&gt;activities<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1738"><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/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_activity_obj_st<sp/>st;</highlight></codeline>
<codeline lineno="1739"><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/>st.writer<sp/>=<sp/>writer;</highlight></codeline>
<codeline lineno="1740"><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/>st.err<sp/>=<sp/>&amp;err;</highlight></codeline>
<codeline lineno="1741"><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/>ms_list_for_each2(person-&gt;activities,<sp/>(MSIterate2Func)write_xml_presence_activity_obj,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="1742"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1743"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1744"><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/></highlight><highlight class="comment">/*<sp/>Close<sp/>the<sp/>&quot;activities&quot;<sp/>element.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1745"><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/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1746"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1747"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1748"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(person-&gt;notes<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1749"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_note_obj_st<sp/>st;</highlight></codeline>
<codeline lineno="1750"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.writer<sp/>=<sp/>writer;</highlight></codeline>
<codeline lineno="1751"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.ns<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;dm&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1752"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.err<sp/>=<sp/>&amp;err;</highlight></codeline>
<codeline lineno="1753"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(person-&gt;notes,<sp/>(MSIterate2Func)write_xml_presence_note_obj,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="1754"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1755"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1756"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>write_xml_presence_timestamp(writer,<sp/>person-&gt;timestamp);</highlight></codeline>
<codeline lineno="1757"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1758"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1759"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Close<sp/>the<sp/>&quot;person&quot;<sp/>element.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1760"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1761"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1762"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1763"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1764"><highlight class="normal"></highlight></codeline>
<codeline lineno="1765"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>write_xml_presence_service_obj(<ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*service,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_presence_service_obj_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="1766"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>write_xml_presence_service(st-&gt;writer,<sp/>service,<sp/>st-&gt;contact);</highlight></codeline>
<codeline lineno="1767"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/>*st-&gt;err<sp/>=<sp/>err;</highlight></codeline>
<codeline lineno="1768"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1769"><highlight class="normal"></highlight></codeline>
<codeline lineno="1770"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>write_xml_presence_person_obj(<ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*person,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>_presence_person_obj_st<sp/>*st)<sp/>{</highlight></codeline>
<codeline lineno="1771"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err<sp/>=<sp/>write_xml_presence_person(st-&gt;writer,<sp/>person);</highlight></codeline>
<codeline lineno="1772"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&lt;<sp/>0)<sp/>*st-&gt;err<sp/>=<sp/>err;</highlight></codeline>
<codeline lineno="1773"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1774"><highlight class="normal"></highlight></codeline>
<codeline lineno="1775"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_notify_convert_presence_to_xml(SalOp<sp/>*op,<sp/>SalPresenceModel<sp/>*presence,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact,<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>**content)<sp/>{</highlight></codeline>
<codeline lineno="1776"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*model;</highlight></codeline>
<codeline lineno="1777"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlBufferPtr<sp/>buf;</highlight></codeline>
<codeline lineno="1778"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlTextWriterPtr<sp/>writer;</highlight></codeline>
<codeline lineno="1779"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>err;</highlight></codeline>
<codeline lineno="1780"><highlight class="normal"></highlight></codeline>
<codeline lineno="1781"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((contact<sp/>==<sp/>NULL)<sp/>||<sp/>(content<sp/>==<sp/>NULL))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1782"><highlight class="normal"></highlight></codeline>
<codeline lineno="1783"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>model<sp/>=<sp/>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*)presence;</highlight></codeline>
<codeline lineno="1784"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>buf<sp/>=<sp/>xmlBufferCreate();</highlight></codeline>
<codeline lineno="1785"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(buf<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1786"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_error(</highlight><highlight class="stringliteral">&quot;Error<sp/>creating<sp/>the<sp/>XML<sp/>buffer&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1787"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1788"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1789"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>writer<sp/>=<sp/>xmlNewTextWriterMemory(buf,<sp/>0);</highlight></codeline>
<codeline lineno="1790"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(writer<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1791"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_error(</highlight><highlight class="stringliteral">&quot;Error<sp/>creating<sp/>the<sp/>XML<sp/>writer&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1792"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="1793"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1794"><highlight class="normal"></highlight></codeline>
<codeline lineno="1795"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlTextWriterSetIndent(writer,1);</highlight></codeline>
<codeline lineno="1796"><highlight class="normal"></highlight></codeline>
<codeline lineno="1797"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartDocument(writer,<sp/></highlight><highlight class="stringliteral">&quot;1.0&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&quot;UTF-8&quot;</highlight><highlight class="normal">,<sp/>NULL);</highlight></codeline>
<codeline lineno="1798"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1799"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterStartElementNS(writer,<sp/>NULL,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;presence&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;urn:ietf:params:xml:ns:pidf&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1800"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1801"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1802"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteAttributeNS(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;xmlns&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;dm&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="1803"><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/>NULL,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;urn:ietf:params:xml:ns:pidf:data-model&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1804"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1805"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1806"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteAttributeNS(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;xmlns&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;rpid&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="1807"><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/>NULL,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;urn:ietf:params:xml:ns:pidf:rpid&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1808"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1809"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1810"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterWriteAttribute(writer,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)</highlight><highlight class="stringliteral">&quot;entity&quot;</highlight><highlight class="normal">,<sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>xmlChar<sp/>*)contact);</highlight></codeline>
<codeline lineno="1811"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1812"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1813"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((model<sp/>==<sp/>NULL)<sp/>||<sp/>(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref><sp/>==<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1814"><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/>err<sp/>=<sp/>write_xml_presence_service(writer,<sp/>NULL,<sp/>contact);</highlight></codeline>
<codeline lineno="1815"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="1816"><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/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_service_obj_st<sp/>st={0};</highlight></codeline>
<codeline lineno="1817"><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/>st.writer<sp/>=<sp/>writer;</highlight></codeline>
<codeline lineno="1818"><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/>st.contact<sp/>=<sp/>contact;</highlight></codeline>
<codeline lineno="1819"><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/>st.err<sp/>=<sp/>&amp;err;</highlight></codeline>
<codeline lineno="1820"><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/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a8905e8352fe395dc985b9bef3d539f28" kindref="member">services</ref>,<sp/>(MSIterate2Func)write_xml_presence_service_obj,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="1821"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1822"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1823"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(model<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1824"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_person_obj_st<sp/>st={0};</highlight></codeline>
<codeline lineno="1825"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.writer<sp/>=<sp/>writer;</highlight></codeline>
<codeline lineno="1826"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.err<sp/>=<sp/>&amp;err;</highlight></codeline>
<codeline lineno="1827"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1af6b680a593f0e7e0a85b60efbdc2db11" kindref="member">persons</ref>,<sp/>(MSIterate2Func)write_xml_presence_person_obj,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="1828"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1829"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((err<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(model<sp/>!=<sp/>NULL))<sp/>{</highlight></codeline>
<codeline lineno="1830"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">_presence_note_obj_st<sp/>st={0};</highlight></codeline>
<codeline lineno="1831"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.writer<sp/>=<sp/>writer;</highlight></codeline>
<codeline lineno="1832"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.ns<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1833"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>st.err<sp/>=<sp/>&amp;err;</highlight></codeline>
<codeline lineno="1834"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_list_for_each2(model-&gt;<ref refid="struct__LinphonePresenceModel_1a9b090ce65d8e39834cb45b25d2f59ce4" kindref="member">notes</ref>,<sp/>(MSIterate2Func)write_xml_presence_note_obj,<sp/>&amp;st);</highlight></codeline>
<codeline lineno="1835"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1836"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1837"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Close<sp/>the<sp/>&quot;presence&quot;<sp/>element.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1838"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndElement(writer);</highlight></codeline>
<codeline lineno="1839"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1840"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1841"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>err<sp/>=<sp/>xmlTextWriterEndDocument(writer);</highlight></codeline>
<codeline lineno="1842"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1843"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(err<sp/>&gt;<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="1844"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>xmlTextWriterEndDocument<sp/>returns<sp/>the<sp/>size<sp/>of<sp/>the<sp/>content.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="1845"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*content<sp/>=<sp/>ms_strdup((</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)buf-&gt;content);</highlight></codeline>
<codeline lineno="1846"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1847"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlFreeTextWriter(writer);</highlight></codeline>
<codeline lineno="1848"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>xmlBufferFree(buf);</highlight></codeline>
<codeline lineno="1849"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1850"><highlight class="normal"></highlight></codeline>
<codeline lineno="1851"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_notify_recv(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/>SalOp<sp/>*op,<sp/>SalSubscribeStatus<sp/>ss,<sp/>SalPresenceModel<sp/>*model){</highlight></codeline>
<codeline lineno="1852"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*tmp;</highlight></codeline>
<codeline lineno="1853"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref><sp/>*lf;</highlight></codeline>
<codeline lineno="1854"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__linphone__address_1ga5af5a516ac253e3cda4f51b599a5385b" kindref="member">LinphoneAddress</ref><sp/>*</highlight><highlight class="keyword">friend</highlight><highlight class="normal">=NULL;</highlight></codeline>
<codeline lineno="1855"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*presence<sp/>=<sp/>model<sp/>?<sp/>(<ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*)model:<ref refid="group__buddy__list_1ga1d18d53dc6742c071b9a33d76761112b" kindref="member">linphone_presence_model_new_with_activity</ref>(<ref refid="group__buddy__list_1gga786b93f017c7572632243e1d493641acae6c23b48f5e845a1892985da5844aae3" kindref="member">LinphonePresenceActivityOffline</ref>,<sp/>NULL);</highlight></codeline>
<codeline lineno="1856"><highlight class="normal"></highlight></codeline>
<codeline lineno="1857"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf=linphone_find_friend_by_out_subscribe(lc-&gt;friends,op);</highlight></codeline>
<codeline lineno="1858"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lf==NULL<sp/>&amp;&amp;<sp/><ref refid="group__misc_1ga36d08c0cbc78d88fd4f043e61e9b9637" kindref="member">lp_config_get_int</ref>(lc-&gt;config,</highlight><highlight class="stringliteral">&quot;sip&quot;</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">&quot;allow_out_of_subscribe_presence&quot;</highlight><highlight class="normal">,0)){</highlight></codeline>
<codeline lineno="1859"><highlight class="normal"><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/>SalAddress<sp/>*addr=sal_op_get_from_address(op);</highlight></codeline>
<codeline lineno="1860"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf=NULL;</highlight></codeline>
<codeline lineno="1861"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>linphone_find_friend_by_address(lc-&gt;friends,(<ref refid="group__linphone__address_1ga5af5a516ac253e3cda4f51b599a5385b" kindref="member">LinphoneAddress</ref>*)addr,&amp;lf);</highlight></codeline>
<codeline lineno="1862"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1863"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lf!=NULL){</highlight></codeline>
<codeline lineno="1864"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*activity<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="1865"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*activity_str;</highlight></codeline>
<codeline lineno="1866"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal">=lf-&gt;uri;</highlight></codeline>
<codeline lineno="1867"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp=<ref refid="group__linphone__address_1ga24c1a16f49f8b72f2bab65cc5d8a51af" kindref="member">linphone_address_as_string</ref>(</highlight><highlight class="keyword">friend</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1868"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity<sp/>=<sp/><ref refid="group__buddy__list_1gae44a7723cc5843954981878e0ff654fd" kindref="member">linphone_presence_model_get_activity</ref>(presence);</highlight></codeline>
<codeline lineno="1869"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>activity_str<sp/>=<sp/><ref refid="group__buddy__list_1ga5b72ce9ec921a464eb7840ac35cee278" kindref="member">linphone_presence_activity_to_string</ref>(activity);</highlight></codeline>
<codeline lineno="1870"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_message(</highlight><highlight class="stringliteral">&quot;We<sp/>are<sp/>notified<sp/>that<sp/>[%s]<sp/>has<sp/>presence<sp/>[%s]&quot;</highlight><highlight class="normal">,<sp/>tmp,<sp/>activity_str);</highlight></codeline>
<codeline lineno="1871"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(activity_str<sp/>!=<sp/>NULL)<sp/>ms_free(activity_str);</highlight></codeline>
<codeline lineno="1872"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lf-&gt;presence<sp/>!=<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="1873"><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/><ref refid="group__buddy__list_1ga8c6c14fe45f6941149ed3eb759db9a23" kindref="member">linphone_presence_model_unref</ref>(lf-&gt;presence);</highlight></codeline>
<codeline lineno="1874"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1875"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf-&gt;presence<sp/>=<sp/>presence;</highlight></codeline>
<codeline lineno="1876"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf-&gt;subscribe_active=TRUE;</highlight></codeline>
<codeline lineno="1877"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>linphone_core_notify_notify_presence_received(lc,(<ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref>*)lf);</highlight></codeline>
<codeline lineno="1878"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_free(tmp);</highlight></codeline>
<codeline lineno="1879"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight><highlight class="keywordflow">else</highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="1880"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_message(</highlight><highlight class="stringliteral">&quot;But<sp/>this<sp/>person<sp/>is<sp/>not<sp/>part<sp/>of<sp/>our<sp/>friend<sp/>list,<sp/>so<sp/>we<sp/>don&apos;t<sp/>care.&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1881"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga8c6c14fe45f6941149ed3eb759db9a23" kindref="member">linphone_presence_model_unref</ref>(presence);</highlight></codeline>
<codeline lineno="1882"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1883"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ss==SalSubscribeTerminated){</highlight></codeline>
<codeline lineno="1884"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>sal_op_release(op);</highlight></codeline>
<codeline lineno="1885"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lf){</highlight></codeline>
<codeline lineno="1886"><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/>lf-&gt;outsub=NULL;</highlight></codeline>
<codeline lineno="1887"><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/>lf-&gt;subscribe_active=FALSE;</highlight></codeline>
<codeline lineno="1888"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1889"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1890"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1891"><highlight class="normal"></highlight></codeline>
<codeline lineno="1892"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>linphone_subscription_closed(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/>SalOp<sp/>*op){</highlight></codeline>
<codeline lineno="1893"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__buddy__list_1ga2f0508bab6d8ded431ce8b1a679a1522" kindref="member">LinphoneFriend</ref><sp/>*lf;</highlight></codeline>
<codeline lineno="1894"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf=linphone_find_friend_by_inc_subscribe(lc-&gt;friends,op);</highlight></codeline>
<codeline lineno="1895"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>sal_op_release(op);</highlight></codeline>
<codeline lineno="1896"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(lf!=NULL){</highlight></codeline>
<codeline lineno="1897"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lf-&gt;insub=NULL;</highlight></codeline>
<codeline lineno="1898"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight><highlight class="keywordflow">else</highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="1899"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ms_warning(</highlight><highlight class="stringliteral">&quot;Receiving<sp/>unsuscribe<sp/>for<sp/>unknown<sp/>in-subscribtion<sp/>from<sp/>%s&quot;</highlight><highlight class="normal">,<sp/>sal_op_get_from(op));</highlight></codeline>
<codeline lineno="1900"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="1901"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1902"><highlight class="normal"></highlight></codeline>
<codeline lineno="1903"><highlight class="normal"><ref refid="group__buddy__list_1gadb1476058b69c4da5e94c7e0d55fd244" kindref="member">LinphonePresenceActivity</ref><sp/>*<sp/><ref refid="group__buddy__list_1gad9775ac2054e82fec338371e4d448207" kindref="member">linphone_core_create_presence_activity</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description)<sp/>{</highlight></codeline>
<codeline lineno="1904"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga91719f76c70a140c0a4187c16945501f" kindref="member">linphone_presence_activity_new</ref>(acttype,<sp/>description);</highlight></codeline>
<codeline lineno="1905"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1906"><highlight class="normal"></highlight></codeline>
<codeline lineno="1907"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga550b75894fe99af8d501a282b8b04d27" kindref="member">linphone_core_create_presence_model</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc)<sp/>{</highlight></codeline>
<codeline lineno="1908"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaafdc5ae622acaadbf1e58415756d9fa3" kindref="member">linphone_presence_model_new</ref>();</highlight></codeline>
<codeline lineno="1909"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1910"><highlight class="normal"></highlight></codeline>
<codeline lineno="1911"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga041ba6122c573cc394b6ecd1e0c8b9f4" kindref="member">linphone_core_create_presence_model_with_activity</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description)<sp/>{</highlight></codeline>
<codeline lineno="1912"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga1d18d53dc6742c071b9a33d76761112b" kindref="member">linphone_presence_model_new_with_activity</ref>(acttype,<sp/>description);</highlight></codeline>
<codeline lineno="1913"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1914"><highlight class="normal"></highlight></codeline>
<codeline lineno="1915"><highlight class="normal"><ref refid="struct__LinphonePresenceModel" kindref="compound">LinphonePresenceModel</ref><sp/>*<sp/><ref refid="group__buddy__list_1gac0b163ea60535ceb06d5dcd63f942378" kindref="member">linphone_core_create_presence_model_with_activity_and_note</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/><ref refid="group__buddy__list_1ga786b93f017c7572632243e1d493641ac" kindref="member">LinphonePresenceActivityType</ref><sp/>acttype,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*description,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*note,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="1916"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1ga37aa5cf371ba6cb116d92a2517d44fff" kindref="member">linphone_presence_model_new_with_activity_and_note</ref>(acttype,<sp/>description,<sp/>note,<sp/>lang);</highlight></codeline>
<codeline lineno="1917"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1918"><highlight class="normal"></highlight></codeline>
<codeline lineno="1919"><highlight class="normal"><ref refid="group__buddy__list_1ga3e527842a46fdd3e4de342fe9b2b3b1d" kindref="member">LinphonePresenceNote</ref><sp/>*<sp/><ref refid="group__buddy__list_1gafe4ecbf13b53ca1edd1dfbc5cbb56a6e" kindref="member">linphone_core_create_presence_note</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*content,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*lang)<sp/>{</highlight></codeline>
<codeline lineno="1920"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gad2b479e6650356c293e2746e0a17afa1" kindref="member">linphone_presence_note_new</ref>(content,<sp/>lang);</highlight></codeline>
<codeline lineno="1921"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1922"><highlight class="normal"></highlight></codeline>
<codeline lineno="1923"><highlight class="normal"><ref refid="group__buddy__list_1ga503dfaadab95b7fbc55cb94371bc03d9" kindref="member">LinphonePresencePerson</ref><sp/>*<sp/><ref refid="group__buddy__list_1ga2dc001939b4fe56ce418f9e8f9c17232" kindref="member">linphone_core_create_presence_person</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="1924"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gaccc8c6acf008ab23615562f4ef2d611f" kindref="member">linphone_presence_person_new</ref>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="1925"><highlight class="normal">}</highlight></codeline>
<codeline lineno="1926"><highlight class="normal"></highlight></codeline>
<codeline lineno="1927"><highlight class="normal"><ref refid="group__buddy__list_1gaa9dcf1946cb5694403859183127b5319" kindref="member">LinphonePresenceService</ref><sp/>*<sp/><ref refid="group__buddy__list_1gaa38987fdf57bc3a6f6c2ff6b27f113c1" kindref="member">linphone_core_create_presence_service</ref>(<ref refid="group__initializing_1gaa5cf635b82dd338e7ee2dd3599d05f0a" kindref="member">LinphoneCore</ref><sp/>*lc,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/><ref refid="group__buddy__list_1ga1bce4ac7547b3459c2815a5a38fab833" kindref="member">LinphonePresenceBasicStatus</ref><sp/>basic_status,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*contact)<sp/>{</highlight></codeline>
<codeline lineno="1928"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="group__buddy__list_1gacbae5482f29072a109efc1a446aca529" kindref="member">linphone_presence_service_new</ref>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/>basic_status,<sp/>contact);</highlight></codeline>
<codeline lineno="1929"><highlight class="normal">}</highlight></codeline>
    </programlisting>
    <location file="C:/Jenkins/workspace/linphone-gtk-win32/coreapi/presence.c"/>
  </compounddef>
</doxygen>
