Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

- Add header files

  • Loading branch information...
decke
decke committed May 11, 2012
1 parent ed0fdae commit b5491d24e8fbe159f1c939ff84541e8fe275399d
Showing with 42 additions and 0 deletions.
  1. +4 −0 common.h
  2. +1 −0 server.c
  3. +37 −0 stomp.h
@@ -27,6 +27,10 @@
#ifndef _COMMON_H_
#define _COMMON_H_

#include <event2/buffer.h>

#define MAX_BUF 16384

extern int find_readers(char *queuename, struct evbuffer *evb);

#endif /* _COMMON_H_ */
@@ -56,6 +56,7 @@
#include "common.h"
#include "server.h"
#include "client.h"
#include "stomp.h"

struct event_base *base;

37 stomp.h
@@ -0,0 +1,37 @@
/*
* Copyright (C) 2011 Bernhard Froehlich <decke@bluelife.at>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Author's name may not be used endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef _STOMP_H_
#define _STOMP_H_

#include <event2/buffer.h>
#include <event2/http.h>

extern int stomp_subscribe(struct client *client);
extern int stomp_parse_headers(struct evkeyvalq* headers, struct evbuffer* buffer);


#endif /* _STOMP_H_ */

0 comments on commit b5491d2

Please sign in to comment.
You can’t perform that action at this time.