UI data is stored on GObjects and automatically destroyed, so this isn't
really needed as a UI op for *our* UIs. There will be a replacement soon
if needed by other UIs.
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
*/
#include<string.h>
#include"internal.h"
#include<purple.h>
#include"mdns_common.h"
#include"mdns_interface.h"
#include"bonjour.h"
#include"buddy.h"
/**
* Allocate space for the dns-sd data.
*/
BonjourDnsSd*bonjour_dns_sd_new(){
BonjourDnsSd*data=g_new0(BonjourDnsSd,1);
returndata;
}
/**
* Deallocate the space of the dns-sd data.
*/
voidbonjour_dns_sd_free(BonjourDnsSd*data){
g_free(data->first);
g_free(data->last);
g_free(data->phsh);
g_free(data->status);
g_free(data->vc);
g_free(data->msg);
g_free(data);
}
#define MAX_TXT_CONSTITUENT_LEN 255
/* Make sure that the value isn't longer than it is supposed to be */