<?xml version="1.0" encoding='ISO-8859-1'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [

<!-- Include general documentation entities -->
<!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
%docentities;

]>
<!-- Module Developer's Guide -->

<chapter>
    <title>&develguide;</title>
    <para>
		The module provides the following functions that can be used
		in other &kamailio; modules.
   </para>
 		<section>
				<title>
				<function moreinfo="none">dmq_load_api(dmq_api_t* api)</function>
				</title>
			<para>
				This function binds the dmq modules and fills the structure 
				with the exported functions
				-> register_dmq_peer - registers an entity as a DMQ peer which permits receiving/sending
				messages between nodes which support the same peer,
				-> bcast_message - broadcast a DMQ message to all peers available in the DMQ bus,
				-> send_message - sends a DMQ message to a specific peer in the local DMQ bus.
			</para>
		<example>
		<title><function>dmq_api_t</function> structure</title>
	<programlisting format="linespecific">
...
typedef struct dmq_api {
	register_dmq_peer_t register_dmq_peer;
	bcast_message_t bcast_message;
	send_message_t send_message;
} dmq_api_t;
...
</programlisting>
		</example>

		</section>
</chapter>

