Updates for new libpri set_message api
authorMatthew Fredrickson <creslin@digium.com>
Mon, 23 May 2005 16:56:06 +0000 (16:56 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Mon, 23 May 2005 16:56:06 +0000 (16:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5754 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 8f439a0..f90b48a 100755 (executable)
@@ -7480,7 +7480,7 @@ static void *do_idle_thread(void *vchan)
        return NULL;
 }
 
-static void zt_pri_message(char *s)
+static void zt_pri_message(struct pri *pri, char *s)
 {
        ast_verbose("%s", s);
 
@@ -7492,7 +7492,10 @@ static void zt_pri_message(char *s)
        ast_mutex_unlock(&pridebugfdlock);
 }
 
-static void zt_pri_error(char *s)
+#ifndef PRI_NEW_SET_API
+#error "Upgrade your libpri"
+#endif
+static void zt_pri_error(struct pri *pri, char *s)
 {
        ast_log(LOG_WARNING, "PRI: %s", s);