# friends

## Name

friends --

## Synopsis

    #define     LJ_FRIEND_GROUP_ALLFRIENDS
    enum        LJFriendType;
    #define     LJ_FRIEND_CONN_MY
    #define     LJ_FRIEND_CONN_OF
    #define     LJ_FRIEND_CONN_BOTH
    LJFriend*   lj_friend_new                   (void);
    LJFriend*   lj_friend_new_with              (char *username,
                                                 char *name,
                                                 char *fg,
                                                 char *bg,
                                                 int conn,
                                                 guint32 mask,
                                                 char *type);
    void        lj_friend_free                  (LJFriend *f);
    gint        lj_friend_compare_username      (gconstpointer a,
                                                 gconstpointer b);
    LJFriendType lj_friend_type_from_str        (char *str);

## Description

## Details

### LJ_FRIEND_GROUP_ALLFRIENDS

    #define LJ_FRIEND_GROUP_ALLFRIENDS 1

### enum LJFriendType

    typedef enum {
    	LJ_FRIEND_TYPE_USER=1,
    	LJ_FRIEND_TYPE_COMMUNITY
    } LJFriendType;

### LJ_FRIEND_CONN_MY

    #define LJ_FRIEND_CONN_MY   (1 << 0)

### LJ_FRIEND_CONN_OF

    #define LJ_FRIEND_CONN_OF   (1 << 1)

### LJ_FRIEND_CONN_BOTH

    #define LJ_FRIEND_CONN_BOTH (LJ_FRIEND_CONN_MY | LJ_FRIEND_CONN_OF)

### lj_friend_new ()

    LJFriend*   lj_friend_new                   (void);

Returns : |

### lj_friend_new_with ()

    LJFriend*   lj_friend_new_with              (char *username,
                                                 char *name,
                                                 char *fg,
                                                 char *bg,
                                                 int conn,
                                                 guint32 mask,
                                                 char *type);

username : |
name : |
fg : |
bg : |
conn : |
mask : |
type : |
Returns : |

### lj_friend_free ()

    void        lj_friend_free                  (LJFriend *f);

f : |

### lj_friend_compare_username ()

    gint        lj_friend_compare_username      (gconstpointer a,
                                                 gconstpointer b);

a : |
b : |
Returns : |

### lj_friend_type_from_str ()

    LJFriendType lj_friend_type_from_str        (char *str);

str : |
Returns : |