apps/app_selective.c
static int sum_private(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 + 1;
	}
	return res;
}
/*! \brief Callback function to sum up private entries on a list */
\brief Callback function to sum up private entries on a list
\ brief Callback function to sum up private entries on a list
static int sum_private(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 + 1;
	}
	return res;
}
static int sum_private ( 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 + 1 ; } return res ; }
\brief Callback function to sum up private entries on a list
\ brief Callback function to sum up private entries on a list