# confd\_lib

`confd_lib` - C library for connecting to NSO

## Library

NSO Library, (`libconfd`, `-lconfd`)

## Description

The `libconfd` shared library is used to connect to NSO. The documentation for the library is divided into several manual pages:

[confd\_lib\_lib(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_lib.3)

> Common Library Functions

[confd\_lib\_dp(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_dp.3)

> The Data Provider API

[confd\_lib\_events(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_events.3)

> The Event Notification API

[confd\_lib\_ha(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_ha.3)

> The High Availability API

[confd\_lib\_cdb(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_cdb.3)

> The CDB API

[confd\_lib\_maapi(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_maapi.3)

> The Management Agent API

There is also a C header file associated with each of these manual pages:

`#include <confd_lib.h>`

> Common type definitions and prototypes for the functions in the [confd\_lib\_lib(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_lib.3) manual page. Always needed.

`#include <confd_dp.h>`

> Needed when functions in the [confd\_lib\_dp(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_dp.3) manual page are used.

`#include <confd_events.h>`

> Needed when functions in the [confd\_lib\_events(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_events.3) manual page are used.

`#include <confd_ha.h>`

> Needed when functions in the [confd\_lib\_ha(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_ha.3) manual page are used.

`#include <confd_cdb.h>`

> Needed when functions in the [confd\_lib\_cdb(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_cdb.3) manual page are used.

`#include <confd_maapi.h>`

> Needed when functions in the [confd\_lib\_maapi(3)](https://nso-docs.cisco.com/guides/resources/man/confd_lib_maapi.3) manual page are used.

For backwards compatibility, `#include <confd.h>` can also be used, and is equivalent to:

```
#include <confd_lib.h>
#include <confd_dp.h>
#include <confd_events.h>
#include <confd_ha.h>
```

## See Also

The NSO User Guide
