apps/app_selective.c
static int delete_private_entries(char *family, char *key, int res)
{
	char buf[2];
	int len = 2;

	if (ast_db_get(family, key, buf, len)) {
		ast_log(LOG_WARNING, "db: %s/%s not found in database.\n", family, key);
		return res;
	}
	if (get_entry_type(buf) != ENTRY_PRIVATE) {
		return res; /* not a private entry */
	}
	ast_debug(1, "Deleting private entry '%s' (%s/%s = %s)\n", key, family, key, buf);
	if (ast_db_del(family, key)) {
		ast_log(LOG_WARNING, "delete: %s/%s not deleted from database.\n", family, key);
	}
	return (res + 1);
}
/*! \brief Callback function to delete all private entries from a list */
\brief Callback function to delete all private entries from a list
\ brief Callback function to delete all private entries from a list
static int delete_private_entries(char *family, char *key, int res)
{
	char buf[2];
	int len = 2;
	if (ast_db_get(family, key, buf, len)) {
		ast_log(LOG_WARNING, "db: %s/%s not found in database.\n", family, key);
		return res;
	}
	if (get_entry_type(buf) != ENTRY_PRIVATE) {
		return res; 
	}
	ast_debug(1, "Deleting private entry '%s' (%s/%s = %s)\n", key, family, key, buf);
	if (ast_db_del(family, key)) {
		ast_log(LOG_WARNING, "delete: %s/%s not deleted from database.\n", family, key);
	}
	return (res + 1);
}
static int delete_private_entries ( char * family , char * key , int res ) { char buf [ 2 ] ; int len = 2 ; if ( ast_db_get ( family , key , buf , len ) ) { ast_log ( LOG_WARNING , " \n " , family , key ) ; return res ; } if ( get_entry_type ( buf ) != ENTRY_PRIVATE ) { return res ; } ast_debug ( 1 , " \n " , key , family , key , buf ) ; if ( ast_db_del ( family , key ) ) { ast_log ( LOG_WARNING , " \n " , family , key ) ; } return ( res + 1 ) ; }
\brief Callback function to delete all private entries from a list
\ brief Callback function to delete all private entries from a list
/* not a private entry */