Ejemplo n.º 1
0
/*
* Create new LDAP server interface object.
*/
SyldapServer *syldap_create() {
	SyldapServer *ldapServer;

	debug_print("Creating LDAP server interface object\n");

	ldapServer = g_new0( SyldapServer, 1 );
	ldapServer->type = ADBOOKTYPE_LDAP;
	ldapServer->addressCache = addrcache_create();
	ldapServer->retVal = MGU_SUCCESS;
	ldapServer->hostName = NULL;
	ldapServer->port = SYLDAP_DFL_PORT;
	ldapServer->baseDN = NULL;
	ldapServer->bindDN = NULL;
	ldapServer->bindPass = NULL;
	ldapServer->searchCriteria = NULL;
	ldapServer->searchValue = NULL;
	ldapServer->entriesRead = 0;
	ldapServer->maxEntries = SYLDAP_MAX_ENTRIES;
	ldapServer->timeOut = SYLDAP_DFL_TIMEOUT;
	ldapServer->newSearch = TRUE;
	ldapServer->thread = NULL;
	ldapServer->busyFlag = FALSE;
	ldapServer->callBack = NULL;
	ldapServer->idleId = 0;
	return ldapServer;
}
Ejemplo n.º 2
0
/*
* Create new cardfile object.
*/
VCardFile *vcard_create() {
	VCardFile *cardFile;
	cardFile = g_new0( VCardFile, 1 );
	cardFile->type = ADBOOKTYPE_VCARD;
	cardFile->addressCache = addrcache_create();
	cardFile->retVal = MGU_SUCCESS;

	cardFile->file = NULL;
	cardFile->path = NULL;
	cardFile->bufptr = cardFile->buffer;
	return cardFile;
}
Ejemplo n.º 3
0
/*
* Create new pilot file object.
*/
JPilotFile *jpilot_create() {
	JPilotFile *pilotFile;
	pilotFile = g_new0( JPilotFile, 1 );
	pilotFile->name = NULL;
	pilotFile->file = NULL;
	pilotFile->path = NULL;
	pilotFile->addressCache = addrcache_create();
	pilotFile->readMetadata = FALSE;
	pilotFile->customLabels = NULL;
	pilotFile->labelInd = NULL;
	pilotFile->retVal = MGU_SUCCESS;
	pilotFile->accessFlag = FALSE;
	pilotFile->havePC3 = FALSE;
	pilotFile->pc3ModifyTime = 0;
	return pilotFile;
}