001package silicondust; 002/*- 003 * ########################################################################## 004 * TV H/W, EPGs, and Recording 005 * $Id: LibHDHomeRun.java 7215 2021-01-03 18:39:51Z ball $ 006 * $HeadURL: svn+ssh://svn.hcf.dev/var/spool/scm/repository.svn/silicondust/trunk/src/main/java/silicondust/LibHDHomeRun.java $ 007 * %% 008 * Copyright (C) 2013 - 2021 Allen D. Ball 009 * %% 010 * Licensed under the Apache License, Version 2.0 (the "License"); 011 * you may not use this file except in compliance with the License. 012 * You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, software 017 * distributed under the License is distributed on an "AS IS" BASIS, 018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 019 * See the License for the specific language governing permissions and 020 * limitations under the License. 021 * ########################################################################## 022 */ 023import lombok.NoArgsConstructor; 024import lombok.ToString; 025import org.fusesource.hawtjni.runtime.JniArg; 026import org.fusesource.hawtjni.runtime.JniClass; 027import org.fusesource.hawtjni.runtime.JniField; 028import org.fusesource.hawtjni.runtime.JniMethod; 029import org.fusesource.hawtjni.runtime.Library; 030 031import static org.fusesource.hawtjni.runtime.FieldFlag.CONSTANT; 032import static org.fusesource.hawtjni.runtime.MethodFlag.CONSTANT_INITIALIZER; 033 034/** 035 * {@link LibHDHomeRun} is the Java entry-point to 036 * {@link.uri https://github.com/Silicondust/libhdhomerun libhdhomerun}. 037 * 038 * @author {@link.uri mailto:ball@hcf.dev Allen D. Ball} 039 * @version $Revision: 7215 $ 040 */ 041@JniClass 042@NoArgsConstructor @ToString 043public class LibHDHomeRun { 044 private static final Library LIBRARY = 045 new Library("silicondust", LibHDHomeRun.class); 046 047 @JniMethod(flags = { CONSTANT_INITIALIZER }) 048 private static final native void init(); 049 050 static { LIBRARY.load(); init(); } 051}