summaryrefslogtreecommitdiff
path: root/source4/lib/dcom
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-08-16 19:03:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:00 -0500
commitd3e8a74551746f3326fceeb55565bd95b1990b4f (patch)
tree0f6fc2804aab20406c0674b228b93d813ab85a2a /source4/lib/dcom
parentd3e7a22630aa931d55ed44a695a0b05344bc6098 (diff)
downloadsamba-d3e8a74551746f3326fceeb55565bd95b1990b4f.tar.gz
samba-d3e8a74551746f3326fceeb55565bd95b1990b4f.tar.bz2
samba-d3e8a74551746f3326fceeb55565bd95b1990b4f.zip
r1838: Updates from the airplane:
- IDL fixes + adding comments - Start working on dcom infrastructure (This used to be commit ef0fc269f06c82594c34ad8673c76c5ea099250e)
Diffstat (limited to 'source4/lib/dcom')
-rw-r--r--source4/lib/dcom/config.m41
-rw-r--r--source4/lib/dcom/config.mk8
-rw-r--r--source4/lib/dcom/main.c65
-rw-r--r--source4/lib/dcom/procedure8
4 files changed, 82 insertions, 0 deletions
diff --git a/source4/lib/dcom/config.m4 b/source4/lib/dcom/config.m4
new file mode 100644
index 0000000000..206b916fa6
--- /dev/null
+++ b/source4/lib/dcom/config.m4
@@ -0,0 +1 @@
+SMB_SUBSYSTEM_MK(LIBDCOM,lib/dcom/config.mk)
diff --git a/source4/lib/dcom/config.mk b/source4/lib/dcom/config.mk
new file mode 100644
index 0000000000..ef7cbf40c8
--- /dev/null
+++ b/source4/lib/dcom/config.mk
@@ -0,0 +1,8 @@
+################################################
+# Start SUBSYSTEM LIBDCOM
+[SUBSYSTEM::LIBDCOM]
+INIT_OBJ_FILES = \
+ lib/dcom/main.o
+#
+# End SUBSYSTEM LIBDCOM
+################################################
diff --git a/source4/lib/dcom/main.c b/source4/lib/dcom/main.c
new file mode 100644
index 0000000000..515322e27a
--- /dev/null
+++ b/source4/lib/dcom/main.c
@@ -0,0 +1,65 @@
+/*
+ Unix SMB/CIFS implementation.
+ Main DCOM functionality
+ Copyright (C) 2004 Jelmer Vernooij <jelmer@samba.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#include "includes.h"
+
+void CoInitializeEx(void *reserved, uint32 thread_options)
+{
+ /* FIXME */
+}
+
+void CoInitialize(void *reserved)
+{
+ CoInitializeEx(reserved, 0);
+}
+
+void CoUnitialize(void)
+{
+ /* FIXME */
+}
+
+void CoRegisterClassObject(void)
+{
+ /* FIXME */
+}
+
+void CoUnregisterClassObject(void)
+{
+ /* FIXME */
+}
+
+void CoCreateInstanceEx(struct GUID *clsid, void *iface, uint32 context, struct COSERVERINFO *pcsi, uint32 num, struct MULTI_QI *results)
+{
+ /* FIXME: Connect to remote server and :*/
+
+ /* FIXME: Call RemoteActivation() */
+ /* FIXME: Call ServerAlive() on IOXIDResolver */
+
+}
+
+void CoCreateInstance(void)
+{
+ CoCreateInstanceEx(/*FIXME*/);
+}
+
+void CoRegisterClassObject(void)
+{
+ /* FIXME */
+}
diff --git a/source4/lib/dcom/procedure b/source4/lib/dcom/procedure
new file mode 100644
index 0000000000..dc89d00bb2
--- /dev/null
+++ b/source4/lib/dcom/procedure
@@ -0,0 +1,8 @@
+Required infrastructure:
+ - CoCreateInstance function
+ - Proxy and Stub (class ?)
+
+
+ - Bind to IOXIDResolver
+ - ServerAlive2()
+ - Bind to ISystemActivator