~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/mohqueue/mohq_locks.h

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id$
 
3
 *
 
4
 * Copyright (C) 2013 Robert Boisvert
 
5
 *
 
6
 * This file is part of the mohqueue module for sip-router, a free SIP server.
 
7
 *
 
8
 * The mohqueue module is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2 of the License, or
 
11
 * (at your option) any later version
 
12
 *
 
13
 * The mohqueue module is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program; if not, write to the Free Software
 
20
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
 *
 
22
 */
 
23
 
 
24
#ifndef MOHQ_LOCKS_H
 
25
#define MOHQ_LOCKS_H
 
26
 
 
27
#include "../../locking.h"
 
28
 
 
29
/**********
 
30
* lock record
 
31
**********/
 
32
 
 
33
typedef struct
 
34
  {
 
35
  gen_lock_t *plock;
 
36
  int lock_cnt;
 
37
  } mohq_lock;
 
38
 
 
39
/**********
 
40
* function declarations
 
41
**********/
 
42
 
 
43
int mohq_lock_change (mohq_lock *, int);
 
44
void mohq_lock_destroy (mohq_lock *);
 
45
int mohq_lock_init (mohq_lock *);
 
46
void mohq_lock_release (mohq_lock *);
 
47
int mohq_lock_set (mohq_lock *, int, int);
 
48
 
 
49
#endif /* MOHQ_LOCKS_H */
 
 
b'\\ No newline at end of file'