altoslib: make parts of AltosLog public for usage outside altoslib.
authorMike Beattie <mike@ethernal.org>
Tue, 18 Sep 2012 11:47:06 +0000 (23:47 +1200)
committerMike Beattie <mike@ethernal.org>
Tue, 18 Sep 2012 11:47:06 +0000 (23:47 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altoslib/AltosLog.java

index 3c12470045935abe9c9297db3c73d3569224e51f..1c7069ce8521fd66209ed34a3f2837de9a62b199 100644 (file)
@@ -25,7 +25,7 @@ import java.util.concurrent.LinkedBlockingQueue;
  * This creates a thread to capture telemetry data and write it to
  * a log file
  */
-class AltosLog implements Runnable {
+public class AltosLog implements Runnable {
 
        LinkedBlockingQueue<AltosLine>  input_queue;
        LinkedBlockingQueue<String>     pending_queue;
@@ -45,7 +45,7 @@ class AltosLog implements Runnable {
                }
        }
 
-       void close() {
+       public void close() {
                close_log_file();
                if (log_thread != null) {
                        log_thread.interrupt();
@@ -53,7 +53,7 @@ class AltosLog implements Runnable {
                }
        }
 
-       File file() {
+       public File file() {
                return file;
        }