0N/A/*
1351N/A * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
0N/A *
0N/A * Permission is hereby granted, free of charge, to any person obtaining a
919N/A * copy of this software and associated documentation files (the "Software"),
919N/A * to deal in the Software without restriction, including without limitation
919N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A * and/or sell copies of the Software, and to permit persons to whom the
919N/A * Software is furnished to do so, subject to the following conditions:
908N/A *
919N/A * The above copyright notice and this permission notice (including the next
919N/A * paragraph) shall be included in all copies or substantial portions of the
919N/A * Software.
908N/A *
919N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A * DEALINGS IN THE SOFTWARE.
0N/A */
0N/A
0N/A
98N/A#ifdef HAVE_XORG_CONFIG_H
98N/A#include <xorg-config.h>
98N/A#endif
98N/A
0N/A#include "xf86Module.h"
0N/A#include "xf86Opt.h"
0N/A
98N/A#include <X11/extensions/interactive.h>
908N/A#include "interactive_srv.h"
0N/A
0N/Astatic MODULESETUPPROTO(IASetup);
0N/A
606N/Astatic ExtensionModule IAExt =
0N/A{
0N/A IAExtensionInit,
0N/A IANAME,
0N/A NULL
0N/A};
0N/A
0N/Astatic XF86ModuleVersionInfo VersRec =
0N/A{
908N/A "IANAME",
908N/A MODULEVENDORSTRING,
908N/A MODINFOSTRING1,
908N/A MODINFOSTRING2,
908N/A XORG_VERSION_CURRENT,
908N/A 1, 0, 0,
908N/A ABI_CLASS_EXTENSION,
908N/A ABI_EXTENSION_VERSION,
908N/A MOD_CLASS_NONE,
908N/A {0,0,0,0}
0N/A};
0N/A
606N/A_X_EXPORT XF86ModuleData iaModuleData = { &VersRec, IASetup, NULL };
0N/A
0N/Astatic pointer
0N/AIASetup(pointer module, pointer opts, int *errmaj, int *errmin)
0N/A{
0N/A if (opts) {
0N/A pointer o = xf86FindOption(opts, "IADebugLevel");
0N/A if (o) {
0N/A IADebugLevel = xf86SetIntOption(opts, "IADebugLevel", 0);
0N/A }
0N/A }
0N/A LoadExtension(&IAExt, FALSE);
0N/A
0N/A /* Need a non-NULL return */
0N/A return (pointer)1;
0N/A}