Plugin init. More...
#include <stdio.h>
#include "ink_platform.h"
#include "ink_file.h"
#include "Compatability.h"
#include "ParseRules.h"
#include "I_RecCore.h"
#include "I_Layout.h"
#include "InkAPIInternal.h"
#include "Main.h"
#include "Plugin.h"
#include "ink_cap.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | init_func_t )(int argc, char *argv[]) |
Functions | |
static void | plugin_load (int argc, char *argv[]) |
static char * | plugin_expand (char *arg) |
void | plugin_init (void) |
Variables | |
static const char * | plugin_dir = "." |
DLL< PluginRegInfo > | plugin_reg_list |
PluginRegInfo * | plugin_reg_current = NULL |
Plugin init.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.
Definition in file Plugin.cc.
typedef void(* init_func_t)(int argc, char *argv[]) |
static char* plugin_expand | ( | char * | arg | ) | [static] |
Definition at line 114 of file Plugin.cc.
References ats_malloc(), REC_ERR_OKAY, RECD_COUNTER, RECD_FLOAT, RECD_INT, RECD_STRING, RecGetRecordCounter(), RecGetRecordDataType(), RecGetRecordFloat(), RecGetRecordInt(), RecGetRecordString_Xmalloc(), and Warning.
Referenced by plugin_init().
void plugin_init | ( | void | ) |
Definition at line 184 of file Plugin.cc.
References api_init(), ats_free(), Layout::get(), ink_file_fd_readline(), ParseRules::is_wslfcr(), PATH_NAME_MAX, plugin_dir, plugin_expand(), plugin_load(), Layout::relative_to(), TSPluginDirGet(), and Warning.
Referenced by main().
static void plugin_load | ( | int | argc, | |
char * | argv[] | |||
) | [static] |
Definition at line 60 of file Plugin.cc.
References ats_strdup, Fatal, DLL< C, L >::head, ink_assert, ink_filepath_make(), Note, PATH_NAME_MAX, plugin_dir, PluginRegInfo::plugin_path, DLL< C, L >::push(), REC_ReadConfigInteger, and Warning.
Referenced by plugin_init().
const char* plugin_dir = "." [static] |
Definition at line 36 of file Plugin.cc.
Referenced by plugin_init(), plugin_load(), SDK_API_TSPluginDirGet(), and TSPluginDirGet().
PluginRegInfo* plugin_reg_current = NULL |
Definition at line 52 of file Plugin.cc.
Referenced by TSPluginRegister().