Viewing file: capng.h (1.74 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* capng_c */ /* Copyright 2020- Hiroshi Hatake*/ /* */ /* 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. */
#ifndef _CAPNG_H_ #define _CAPNG_H_
#include <ruby.h> #include <ruby/encoding.h> #include <ruby/io.h>
#include <cap-ng.h> #include <fcntl.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h>
extern VALUE rb_cCapNG; extern VALUE rb_cCapNGPrint; extern VALUE rb_cCapability; extern VALUE rb_cState; extern VALUE rb_mAction; extern VALUE rb_mSelect; extern VALUE rb_mType; extern VALUE rb_mResult; extern VALUE rb_mPrint; extern VALUE rb_mFlags;
capng_select_t select_name_to_select_type(char* select_name); capng_act_t action_name_to_action_type(char* action_name); capng_print_t print_name_to_print_type(char* print_name); capng_type_t capability_type_name_to_capability_type(char* capability_name);
typedef struct { int code; const char* name; } CapabilityInfo;
extern CapabilityInfo capabilityInfoTable[];
void Init_capng_capability(VALUE); void Init_capng_enum(VALUE); void Init_capng_enum_action(VALUE); void Init_capng_enum_flags(VALUE); void Init_capng_enum_result(VALUE); void Init_capng_enum_select(VALUE); void Init_capng_enum_type(VALUE); void Init_capng_print(VALUE); void Init_capng_state(VALUE); #endif // _CAPNG_H
|