[Goodies-commits] r2675 - xfce4-cellmodem-plugin/trunk/panel-plugin
Alvaro Lopes
alvieboy at xfce.org
Fri Apr 6 18:16:13 CEST 2007
Author: alvieboy
Date: 2007-04-06 16:16:13 +0000 (Fri, 06 Apr 2007)
New Revision: 2675
Modified:
xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.c
xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.h
Log:
Still debug fixes
Modified: xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.c
===================================================================
--- xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.c 2007-04-06 15:23:19 UTC (rev 2674)
+++ xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.c 2007-04-06 16:16:13 UTC (rev 2675)
@@ -24,8 +24,8 @@
#ifdef DEBUG_ENABLED
-char logbuf[8192];
-int debug_level = 0;
+char cellmodem_logbuf[8192];
+int cellmodem_debug_level = 0;
#endif
@@ -1200,7 +1200,47 @@
cellmodem_t_switch_status( monitor, MODEM_WAIT_CMGF_RESPONSE );
}
#endif
+
+
/**
+ * @brief [cellmodem_t member] Request SMS storage status from modem
+ *
+ * @param monitor The cellmodem object
+ *
+ * This is asynchronous. Pseudo-method "cellmodem_t_cpms_callback" will
+ * be called when modem replies.
+ *
+ * @return Nothing
+ */
+#if 0
+static void
+cellmodem_t_get_cpms( cellmodem_t *monitor )
+{
+ cellmodem_t_send_at_command(monitor, &cellmodem_t_cpms_callback, "+CPMS?","+CPMS: " );
+ cellmodem_t_switch_status( monitor, MODEM_WAIT_CMGF_RESPONSE );
+}
+#endif
+
+/**
+ * @brief [cellmodem_t member] Request SMS already read from modem
+ *
+ * @param monitor The cellmodem object
+ *
+ * This is asynchronous. Pseudo-method "cellmodem_t_cmgl_read_callback" will
+ * be called when modem replies.
+ *
+ * @return Nothing
+ */
+#if 0
+static void
+cellmodem_t_get_cmgl_read( cellmodem_t *monitor )
+{
+ cellmodem_t_send_at_command(monitor, &cellmodem_t_cmgl_callback, "+CPMS?","+CPMS: " );
+ cellmodem_t_switch_status( monitor, MODEM_WAIT_CMGL_READ_RESPONSE );
+}
+#endif
+
+/**
* @brief [cellmodem_t member] Set SMS response type from modem (PDU mode).
* This is only called if the card supports SMS and its in text mode. See ETSI 07.05
*
@@ -1749,7 +1789,7 @@
int init_logging()
{
openlog("cellmodem", LOG_PID, LOG_USER );
- cellmodem_log_level = 9;
+ cellmodem_debug_level = 9;
return 0;
}
Modified: xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.h
===================================================================
--- xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.h 2007-04-06 15:23:19 UTC (rev 2674)
+++ xfce4-cellmodem-plugin/trunk/panel-plugin/cellmodem.h 2007-04-06 16:16:13 UTC (rev 2675)
@@ -55,7 +55,7 @@
#ifdef DEBUG_ENABLED
#define CELLMODEM_DEBUG(dl, x...) do { \
if ( dl <= cellmodem_debug_level ) { \
- char *tmp=cellmodem_logbuf; tmp+=sprintf(logbuf,"%s [%d] : ", __FUNCTION__, __LINE__); \
+ char *tmp=cellmodem_logbuf; tmp+=sprintf(cellmodem_logbuf,"%s [%d] : ", __FUNCTION__, __LINE__); \
tmp+=sprintf(tmp,x); \
sprintf(tmp,"\n"); \
syslog(LOG_DEBUG, "%s", cellmodem_logbuf ); \
More information about the Goodies-commits
mailing list