# savan_publisher.h File Reference

`#include <platforms/axutil_platform_auto_sense.h>`
`#include <axutil_utils_defines.h>`
`#include <axutil_env.h>`
`#include <axis2_conf.h>`
`#include <axis2_msg_ctx.h>`
`#include <axiom_node.h>`

Go to the source code of this file.

## Classes
struct | savan_publisher_ops
| Publisher ops struct Encapsulator struct for ops of savan_publisher. More...
struct | savan_publisher

## Detailed Description

## Function Documentation

AXIS2_EXTERN savan_publisher_t* savan_publisher_create | ( | const axutil_env_t * | env | ) |

Create the savan publisher.

Parameters:

  | env | environment object

Returns:
  status of the operation

AXIS2_EXTERN savan_publisher_t* savan_publisher_create_with_conf | ( | const axutil_env_t * | env,
|  | axis2_conf_t * | conf |
| ) |  |  |

Create the savan publisher.

Parameters:

  | env | environment object
  | conf | axis2 configuration

Returns:
  status of the operation

AXIS2_EXTERN void savan_publisher_free | ( | savan_publisher_t * | publishermod,
|  | const axutil_env_t * | env |
| ) |  |  |

Deallocate the publisher.

Parameters:

  | publisher |
  | env | environment object

AXIS2_EXTERN void savan_publisher_publish | ( | savan_publisher_t * | publishermod,
|  | const axutil_env_t * | env,
|  | void * | msg_ctx,
|  | struct savan_subs_mgr * | subs_mgr |
| ) |  |  |

Apply publisher to payload.

Parameters:

  | publisher |
  | env | environment object
  | msg_ctx | Message context of the incoming event message.