[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8445 - in flightrecorder/src: include libflightrecorder
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8445 - in flightrecorder/src: include libflightrecorder |
Date: |
Sat, 2 May 2009 09:24:30 -0600 |
Author: durner
Date: 2009-05-02 09:24:30 -0600 (Sat, 02 May 2009)
New Revision: 8445
Modified:
flightrecorder/src/include/flightrecorder.h
flightrecorder/src/libflightrecorder/main.c
Log:
simplify initializer
Modified: flightrecorder/src/include/flightrecorder.h
===================================================================
--- flightrecorder/src/include/flightrecorder.h 2009-05-02 13:41:18 UTC (rev
8444)
+++ flightrecorder/src/include/flightrecorder.h 2009-05-02 15:24:30 UTC (rev
8445)
@@ -52,13 +52,16 @@
void fr_free(void *p);
/**
- * @brief Initializes a session with the flightrecorder server
- * @param server server name, NULL for in-process operation
- * @param port server port
+ * @brief Initializes this library
* @return 1 on success, 0 otherwise
*/
-int fr_init(char *server, unsigned int port);
+int fr_init();
+/**
+ * @brief Frees resources used by this library
+ */
+void fr_uninit();
+
/* --- Sessions --- */
struct FR_Session *fr_session_create();
void fr_session_destroy(struct FR_Session *ses);
Modified: flightrecorder/src/libflightrecorder/main.c
===================================================================
--- flightrecorder/src/libflightrecorder/main.c 2009-05-02 13:41:18 UTC (rev
8444)
+++ flightrecorder/src/libflightrecorder/main.c 2009-05-02 15:24:30 UTC (rev
8445)
@@ -24,32 +24,18 @@
#include "flightrecorder.h"
#include "private.h"
-static int remote_operation;
-
-// FIXME
-#define FLIGHT_REC_OPTS int
-
/**
- * @brief Initializes a session with the flightrecorder server
- * @param server server name, NULL for in-process operation
- * @param port server port
+ * @brief Initializes this library
* @return 1 on success, 0 otherwise
*/
-int fr_init(char *server, unsigned int port)
+int fr_init()
{
- if (server)
- {
- remote_operation = 1;
- }
- else
- {
- remote_operation = 0;
-
- memset(fr_session_get_local(), 0, sizeof(struct FR_Session));
- }
-
- // FIXME
- // ...
-
return 1;
}
+
+/**
+ * @brief Frees resources used by this library
+ */
+void fr_uninit()
+{
+}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8445 - in flightrecorder/src: include libflightrecorder,
gnunet <=