Browser sorting. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include <sys/stat.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "sort.h"
#include "lib.h"
#include "globals.h"
Go to the source code of this file.
Data Structures | |
struct | CompareData |
Private data for browser_sort_helper() More... | |
Functions | |
static int | browser_sort_subject (const void *a, const void *b, void *sdata) |
Compare two browser entries by their subject - Implements sort_t -. | |
static int | browser_sort_unsorted (const void *a, const void *b, void *sdata) |
Compare two browser entries by their order - Implements sort_t -. | |
static int | browser_sort_desc (const void *a, const void *b, void *sdata) |
Compare two browser entries by their descriptions - Implements sort_t -. | |
static int | browser_sort_date (const void *a, const void *b, void *sdata) |
Compare two browser entries by their date - Implements sort_t -. | |
static int | browser_sort_size (const void *a, const void *b, void *sdata) |
Compare two browser entries by their size - Implements sort_t -. | |
static int | browser_sort_count (const void *a, const void *b, void *sdata) |
Compare two browser entries by their message count - Implements sort_t -. | |
static int | browser_sort_new (const void *a, const void *b, void *sdata) |
Compare two browser entries by their new count - Implements sort_t -. | |
static int | browser_sort_helper (const void *a, const void *b, void *sdata) |
Helper to sort the items in the browser - Implements sort_t -. | |
void | browser_sort (struct BrowserState *state) |
Sort the entries in the browser. | |
Browser sorting.
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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file sort.c.
void browser_sort | ( | struct BrowserState * | state | ) |
Sort the entries in the browser.
state | Browser state |
Call to qsort using browser_sort_helper function. Some specific sort methods are not used via NNTP.
Definition at line 186 of file sort.c.