> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionSDAddProvider

# SD\_AddProvider (obsolete)

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

## Function Syntax

```plaintext theme={null}
long SD_AddProvider(service svc, char[] name, dword isSimulated, serviceProviderRef * newProvider);
```

## Description

Adds a provider endpoint to a service communication object. The new endpoint may be real and detected through some protocol messages, or it may be simulated to test reaction of a consumer to dynamic endpoint changes.

## Parameters

* **svc**: Service to which the endpoint shall be added.
* **name**: Name of the new provider.
* **isSimulated**: 1 if the new provider shall be simulated, 0 if it shall be real.
* **newProvider**: Receives a reference to the new provider.

## Return Values

* **0**: Success
* **1**: Service does not allow dynamic endpoint changes
* **2**: Name is already used for another endpoint
* **\< 0**: Other error

## Example

```plaintext theme={null}
SD_AddProvider(MirrorAdjustment, "RearMirror", 1, newProvider);
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [SD\_AddConsumer](CAPLfunctionSDAddConsumer.md) • [SD\_RemoveProvider](CAPLfunctionSDRemoveProvider.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.