# vx_evt_buddy_and_group_list_changed

> Learn about buddy presence change notifications.

Presented when the buddy or group list undergoes a significant change.  [More...](#detailed-description)

`#include <VxcEvents.h>`

## Public Attributes

|                                                        | Name                                                                                                                                                     |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [vx\_evt\_base\_t](./_vxc_8h.md#typedef-vx_evt_base_t) | **[base](./structvx__evt__buddy__and__group__list__changed.md#variable-base)** The common properties for all events.                                     |
| [VX\_HANDLE](./_vxc_8h.md#typedef-vx_handle)           | **[account\_handle](./structvx__evt__buddy__and__group__list__changed.md#variable-account_handle)** The handle returned from a successful login request. |
| int                                                    | **[buddy\_count](./structvx__evt__buddy__and__group__list__changed.md#variable-buddy_count)** The count of the number of buddies.                        |
| [vx\_buddy\_t](./_vxc_8h.md#typedef-vx_buddy_t) \*\*   | **[buddies](./structvx__evt__buddy__and__group__list__changed.md#variable-buddies)** An array of pointers to buddies.                                    |
| int                                                    | **[group\_count](./structvx__evt__buddy__and__group__list__changed.md#variable-group_count)** The count of the number of groups.                         |
| [vx\_group\_t](./_vxc_8h.md#typedef-vx_group_t) \*\*   | **[groups](./structvx__evt__buddy__and__group__list__changed.md#variable-groups)** An array of buddy group pointers.                                     |

## Detailed Description

```cpp
struct vx_evt_buddy_and_group_list_changed;
```

Presented when the buddy or group list undergoes a significant change.

This event is always received after login, and can be used to build the initial buddy and group UI.

## Public Attributes Documentation

### variable base

```cpp
vx_evt_base_t base;
```

The common properties for all events.

### variable account\_handle

```cpp
VX_HANDLE account_handle;
```

The handle returned from a successful login request.

### variable buddy\_count

```cpp
int buddy_count;
```

The count of the number of buddies.

### variable buddies

```cpp
vx_buddy_t ** buddies;
```

An array of pointers to buddies.

### variable group\_count

```cpp
int group_count;
```

The count of the number of groups.

### variable groups

```cpp
vx_group_t ** groups;
```

An array of buddy group pointers.
