~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/engine/util/util-interfaces.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-03-14 13:48:23 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130314134823-gyk5av1g508zyj8a
Tags: 0.3.0~pr1-0ubuntu1
New upstream version (FFE lp: #1154316), supports multiple account as
well as full conversation views with inline replies

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    public abstract int compare(Comparable other);
9
9
    
10
10
    /**
11
 
     * A CompareFunc for any object that implements Comparable.
 
11
     * A CompareFunc for any object that implements Comparable
 
12
     * (ascending order).
12
13
     */
13
14
    public static int compare_func(void *a, void *b) {
14
15
        return ((Comparable *) a)->compare((Comparable *) b);
15
16
    }
16
17
    
17
18
    /**
 
19
     * A reverse CompareFunc for any object that implements
 
20
     * Comparable (descending order).
 
21
     */
 
22
    public static int reverse_compare_func(void *a, void *b) {
 
23
        return ((Comparable *) b)->compare((Comparable *) a);
 
24
    }
 
25
    
 
26
    /**
18
27
     * A CompareFunc for DateTime.
19
28
     */
20
29
    public static int date_time_compare(void *a, void *b) {