Revision: 68846
          http://sourceforge.net/p/brlcad/code/68846
Author:   starseeker
Date:     2016-09-18 17:31:28 +0000 (Sun, 18 Sep 2016)
Log Message:
-----------
Rename example header defining protocol.

Modified Paths:
--------------
    brlcad/trunk/src/libpkg/example/CMakeLists.txt
    brlcad/trunk/src/libpkg/example/client.c
    brlcad/trunk/src/libpkg/example/server.c

Added Paths:
-----------
    brlcad/trunk/src/libpkg/example/ncp.h

Removed Paths:
-------------
    brlcad/trunk/src/libpkg/example/ntp.h

Modified: brlcad/trunk/src/libpkg/example/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/libpkg/example/CMakeLists.txt      2016-09-18 17:29:14 UTC 
(rev 68845)
+++ brlcad/trunk/src/libpkg/example/CMakeLists.txt      2016-09-18 17:31:28 UTC 
(rev 68846)
@@ -10,7 +10,7 @@
 BRLCAD_ADDEXEC(pkg_test_server server.c "libbu;libpkg" NO_INSTALL)
 BRLCAD_ADDEXEC(pkg_test_client client.c "libbu;libpkg" NO_INSTALL)
 
-CMAKEFILES(ntp.h)
+CMAKEFILES(ncp.h)
 
 # Local Variables:
 # tab-width: 8

Modified: brlcad/trunk/src/libpkg/example/client.c
===================================================================
--- brlcad/trunk/src/libpkg/example/client.c    2016-09-18 17:29:14 UTC (rev 
68845)
+++ brlcad/trunk/src/libpkg/example/client.c    2016-09-18 17:31:28 UTC (rev 
68846)
@@ -39,7 +39,7 @@
 #include "bu/file.h"
 #include "bu/vls.h"
 #include "pkg.h"
-#include "ntp.h"
+#include "ncp.h"
 
 /* callback when an unexpected message packet is received. */
 void

Copied: brlcad/trunk/src/libpkg/example/ncp.h (from rev 68845, 
brlcad/trunk/src/libpkg/example/ntp.h)
===================================================================
--- brlcad/trunk/src/libpkg/example/ncp.h                               (rev 0)
+++ brlcad/trunk/src/libpkg/example/ncp.h       2016-09-18 17:31:28 UTC (rev 
68846)
@@ -0,0 +1,50 @@
+/*                          N C P . H
+ * BRL-CAD
+ *
+ * Copyright (c) 2006-2016 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file libpkg/example/ncp.h
+ *
+ * Example network communications protocol definition
+ *
+ */
+
+#ifndef LIBPKG_EXAMPLE_NTP_H
+#define LIBPKG_EXAMPLE_NTP_H
+
+/* simple network communication protocol. connection starts with a HELO,
+ * then a variable number of GEOM/ARGS messages, then a CIAO to end.
+ */
+#define MAGIC_ID       "TPKG"
+#define MSG_HELO       1
+#define MSG_DATA       2
+#define MSG_CIAO       3
+
+/* maximum number of digits on a port number */
+#define MAX_DIGITS      5
+
+#endif /* LIBPKG_EXAMPLE_NCP_H */
+
+/*
+ * Local Variables:
+ * mode: C
+ * tab-width: 8
+ * indent-tabs-mode: t
+ * c-file-style: "stroustrup"
+ * End:
+ * ex: shiftwidth=4 tabstop=8
+ */

Deleted: brlcad/trunk/src/libpkg/example/ntp.h
===================================================================
--- brlcad/trunk/src/libpkg/example/ntp.h       2016-09-18 17:29:14 UTC (rev 
68845)
+++ brlcad/trunk/src/libpkg/example/ntp.h       2016-09-18 17:31:28 UTC (rev 
68846)
@@ -1,50 +0,0 @@
-/*                          N C P . H
- * BRL-CAD
- *
- * Copyright (c) 2006-2016 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-/** @file libpkg/example/ncp.h
- *
- * Example network communications protocol definition
- *
- */
-
-#ifndef LIBPKG_EXAMPLE_NTP_H
-#define LIBPKG_EXAMPLE_NTP_H
-
-/* simple network communication protocol. connection starts with a HELO,
- * then a variable number of GEOM/ARGS messages, then a CIAO to end.
- */
-#define MAGIC_ID       "TPKG"
-#define MSG_HELO       1
-#define MSG_DATA       2
-#define MSG_CIAO       3
-
-/* maximum number of digits on a port number */
-#define MAX_DIGITS      5
-
-#endif /* LIBPKG_EXAMPLE_NCP_H */
-
-/*
- * Local Variables:
- * mode: C
- * tab-width: 8
- * indent-tabs-mode: t
- * c-file-style: "stroustrup"
- * End:
- * ex: shiftwidth=4 tabstop=8
- */

Modified: brlcad/trunk/src/libpkg/example/server.c
===================================================================
--- brlcad/trunk/src/libpkg/example/server.c    2016-09-18 17:29:14 UTC (rev 
68845)
+++ brlcad/trunk/src/libpkg/example/server.c    2016-09-18 17:31:28 UTC (rev 
68846)
@@ -38,7 +38,7 @@
 #include "bu/getopt.h"
 #include "bu/vls.h"
 #include "pkg.h"
-#include "ntp.h"
+#include "ncp.h"
 
 /*
  * callback when a HELO message packet is received.

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to