dect
/
asterisk
Archived
13
0
Fork 0

Remove accidental libpri dependency (bug #3714)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5139 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-03-05 02:08:37 +00:00
parent 853154a5f1
commit 9bf54c1aae
2 changed files with 20 additions and 0 deletions

View File

@ -1029,6 +1029,7 @@ static char *event2str(int event)
return buf;
}
#ifdef ZAPATA_PRI
static char *dialplan2str(int dialplan)
{
if (dialplan == -1) {
@ -1036,6 +1037,7 @@ static char *dialplan2str(int dialplan)
}
return(pri_plan2str(dialplan));
}
#endif
#ifdef ZAPATA_R2
static int str2r2prot(char *swtype)

View File

@ -102,6 +102,24 @@ extern int ast_sched_runq(struct sched_context *con);
*/
extern void ast_sched_dump(struct sched_context *con);
/*
*! Convenience macro for objects and reference (add)
*
*/
#define ast_sched_add_object(obj,con,when,callback) ast_sched_add((con),(when),(callback), ASTOBJ_REF((obj)))
/*
*! Convenience macro for objects and reference (del)
*
*/
#define ast_sched_del_object(obj,destructor,con,id) do { \
if ((id) > -1) { \
ast_sched_del((con),(id)); \
(id) = -1; \
ASTOBJ_UNREF((obj),(destructor)); \
} \
} while(0)
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif