ide-diagnostics: Builder SDK Reference

## ide-diagnostics ide-diagnostics |

## Functions

IdeDiagnostics * | ide_diagnostics_ref ()
void | ide_diagnostics_unref ()
gsize | ide_diagnostics_get_size ()
IdeDiagnostic * | ide_diagnostics_index ()
void | ide_diagnostics_merge ()
IdeDiagnostics * | ide_diagnostics_new ()
void | ide_diagnostics_add ()
void | ide_diagnostics_take ()

## Description

## Functions

### ide_diagnostics_ref ()

    IdeDiagnostics *
    ide_diagnostics_ref (IdeDiagnostics *self);

### ide_diagnostics_unref ()

    void
    ide_diagnostics_unref (IdeDiagnostics *self);

### ide_diagnostics_get_size ()

    gsize
    ide_diagnostics_get_size (IdeDiagnostics *self);

Retrieves the number of diagnostics that can be accessed via `ide_diagnostics_index()`.

#### Returns

The number of diagnostics in `self` .

### ide_diagnostics_index ()

    IdeDiagnostic *
    ide_diagnostics_index (IdeDiagnostics *self,
                           gsize index);

Retrieves the diagnostic at `index` .

#### Returns

An IdeDiagnostic.

[transfer none]

### ide_diagnostics_merge ()

    void
    ide_diagnostics_merge (IdeDiagnostics *self,
                           IdeDiagnostics *other);

Copies the contents of `other` into `self` .

This is performed by taking a reference to the immutable IdeDiagnostic instances.

### ide_diagnostics_new ()

    IdeDiagnostics *
    ide_diagnostics_new (GPtrArray *ar);

Creates a new IdeDiagnostics container structure for `ar` . Ownership of `ar` is transfered to the resulting structure.

#### Parameters

ar | an array of IdeDiagnostic. | [transfer full][element-type Ide.Diagnostic][nullable]

#### Returns

A newly allocated IdeDiagnostics.

[transfer full]

### ide_diagnostics_add ()

    void
    ide_diagnostics_add (IdeDiagnostics *self,
                         IdeDiagnostic *diagnostic);

### ide_diagnostics_take ()

    void
    ide_diagnostics_take (IdeDiagnostics *self,
                          IdeDiagnostic *diagnostic);

Like `ide_diagnostics_add()` but steals the reference to `diagnostic` .

#### Parameters

self | a IdeDiagnostics |
diagnostic | an IdeDiagnostic. | [transfer full]

Since: 3.30

## Types and Values