summaryrefslogtreecommitdiffstats
path: root/mc
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2012-09-19 20:51:34 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2012-09-19 20:51:34 -0700
commit1123323fda6d128fb98b0427e0ea5f6a2dc9e632 (patch)
tree3407a3771a069f812554312ce7c36db625139cc2 /mc
parent3cedfae76a2351bc8b1e5bd2ee33bbf8630dbacf (diff)
downloadxrdp-proprietary-1123323fda6d128fb98b0427e0ea5f6a2dc9e632.tar.gz
xrdp-proprietary-1123323fda6d128fb98b0427e0ea5f6a2dc9e632.zip
o moved from GNU General Public License to Apache License, Version 2.0
o applied new coding standards to all .c files o moved some files around
Diffstat (limited to 'mc')
-rw-r--r--mc/mc.c125
-rw-r--r--mc/mc.h40
2 files changed, 81 insertions, 84 deletions
diff --git a/mc/mc.c b/mc/mc.c
index 21c797d3..b585915c 100644
--- a/mc/mc.c
+++ b/mc/mc.c
@@ -1,114 +1,113 @@
-/*
- 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.
-
- xrdp: A Remote Desktop Protocol server.
- Copyright (C) Jay Sorg 2007-2010
-
- media center
-
-*/
+/**
+ * xrdp: A Remote Desktop Protocol server.
+ *
+ * Copyright (C) Jay Sorg 2004-2012
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * media center
+ */
#include "mc.h"
/*****************************************************************************/
/* return error */
int DEFAULT_CC
-lib_mod_start(struct mod* mod, int w, int h, int bpp)
+lib_mod_start(struct mod *mod, int w, int h, int bpp)
{
- LIB_DEBUG(mod, "in lib_mod_start");
- mod->width = w;
- mod->height = h;
- mod->bpp = bpp;
- LIB_DEBUG(mod, "out lib_mod_start");
- return 0;
+ LIB_DEBUG(mod, "in lib_mod_start");
+ mod->width = w;
+ mod->height = h;
+ mod->bpp = bpp;
+ LIB_DEBUG(mod, "out lib_mod_start");
+ return 0;
}
/******************************************************************************/
/* return error */
int DEFAULT_CC
-lib_mod_connect(struct mod* mod)
+lib_mod_connect(struct mod *mod)
{
- LIB_DEBUG(mod, "in lib_mod_connect");
- LIB_DEBUG(mod, "out lib_mod_connect");
- return 0;
+ LIB_DEBUG(mod, "in lib_mod_connect");
+ LIB_DEBUG(mod, "out lib_mod_connect");
+ return 0;
}
/******************************************************************************/
/* return error */
int DEFAULT_CC
-lib_mod_event(struct mod* mod, int msg, long param1, long param2,
+lib_mod_event(struct mod *mod, int msg, long param1, long param2,
long param3, long param4)
{
- LIB_DEBUG(mod, "in lib_mod_event");
- LIB_DEBUG(mod, "out lib_mod_event");
- return 0;
+ LIB_DEBUG(mod, "in lib_mod_event");
+ LIB_DEBUG(mod, "out lib_mod_event");
+ return 0;
}
/******************************************************************************/
/* return error */
int DEFAULT_CC
-lib_mod_signal(struct mod* mod)
+lib_mod_signal(struct mod *mod)
{
- LIB_DEBUG(mod, "in lib_mod_signal");
- LIB_DEBUG(mod, "out lib_mod_signal");
- return 0;
+ LIB_DEBUG(mod, "in lib_mod_signal");
+ LIB_DEBUG(mod, "out lib_mod_signal");
+ return 0;
}
/******************************************************************************/
/* return error */
int DEFAULT_CC
-lib_mod_end(struct mod* mod)
+lib_mod_end(struct mod *mod)
{
- return 0;
+ return 0;
}
/******************************************************************************/
/* return error */
int DEFAULT_CC
-lib_mod_set_param(struct mod* mod, char* name, char* value)
+lib_mod_set_param(struct mod *mod, char *name, char *value)
{
- return 0;
+ return 0;
}
/******************************************************************************/
-struct mod* EXPORT_CC
+struct mod *EXPORT_CC
mod_init(void)
{
- struct mod* mod;
+ struct mod *mod;
- mod = (struct mod*)g_malloc(sizeof(struct mod), 1);
- mod->size = sizeof(struct mod);
- mod->version = CURRENT_MOD_VER;
- mod->handle = (long)mod;
- mod->mod_connect = lib_mod_connect;
- mod->mod_start = lib_mod_start;
- mod->mod_event = lib_mod_event;
- mod->mod_signal = lib_mod_signal;
- mod->mod_end = lib_mod_end;
- mod->mod_set_param = lib_mod_set_param;
- return mod;
+ mod = (struct mod *)g_malloc(sizeof(struct mod), 1);
+ mod->size = sizeof(struct mod);
+ mod->version = CURRENT_MOD_VER;
+ mod->handle = (long)mod;
+ mod->mod_connect = lib_mod_connect;
+ mod->mod_start = lib_mod_start;
+ mod->mod_event = lib_mod_event;
+ mod->mod_signal = lib_mod_signal;
+ mod->mod_end = lib_mod_end;
+ mod->mod_set_param = lib_mod_set_param;
+ return mod;
}
/******************************************************************************/
int EXPORT_CC
-mod_exit(struct mod* mod)
+mod_exit(struct mod *mod)
{
- if (mod == 0)
- {
+ if (mod == 0)
+ {
+ return 0;
+ }
+
+ g_free(mod);
return 0;
- }
- g_free(mod);
- return 0;
}
diff --git a/mc/mc.h b/mc/mc.h
index b1802727..1246326d 100644
--- a/mc/mc.h
+++ b/mc/mc.h
@@ -1,24 +1,22 @@
-/*
- 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.
-
- xrdp: A Remote Desktop Protocol server.
- Copyright (C) Jay Sorg 2007-2010
-
- media center
-
-*/
+/**
+ * xrdp: A Remote Desktop Protocol server.
+ *
+ * Copyright (C) Jay Sorg 2004-2012
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * media center
+ */
/* include other h files */
#include "arch.h"