Skip to content

Commit

Permalink
Use pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv authored and ortex committed Apr 1, 2023
1 parent 1c3b49e commit d65d7ae
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 50 deletions.
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/channel_set.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef CHANNEL_SET_H_
#define CHANNEL_SET_H_
#include <jni.h>

#include "common.h"

Expand All @@ -10,5 +9,3 @@
#define CHANNEL_SET_CLASS PACKAGE_BASE_NAME "/ChannelSet"

roc_channel_set get_channel_set(JNIEnv* env, jobject jchannel_set);

#endif /* CHANNEL_SET_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/clock_source.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef CLOCK_SOURCE_H_
#define CLOCK_SOURCE_H_
#include <jni.h>

#include "common.h"

Expand All @@ -10,5 +9,3 @@
#define CLOCK_SOURCE_CLASS PACKAGE_BASE_NAME "/ClockSource"

roc_clock_source get_clock_source(JNIEnv* env, jobject jclock_source);

#endif /* CLOCK_SOURCE_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef COMMON_H_
#define COMMON_H_
#include <jni.h>

#include <assert.h>
#include <string.h>
Expand Down Expand Up @@ -30,5 +29,3 @@ void set_int_field_value(JNIEnv* env, jclass clazz, jobject obj, const char* att
int get_enum_value(JNIEnv* env, jclass clazz, jobject enumObj);
jobject get_object_field(
JNIEnv* env, jclass clazz, jobject obj, const char* attr_name, const char* attr_class_name);

#endif /* COMMON_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/endpoint.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#include <jni.h>
#pragma once

#ifndef ENDPOINT_H_
#define ENDPOINT_H_
#include <jni.h>

#include <roc/endpoint.h>

int endpoint_unmarshal(JNIEnv* env, roc_endpoint** endpoint, jobject jendpoint);

void endpoint_set_port(JNIEnv* env, jobject endpoint, int port);

#endif /* ENDPOINT_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/fec_encoding.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef FEC_ENCODING_H_
#define FEC_ENCODING_H_
#include <jni.h>

#include "common.h"

Expand All @@ -10,5 +9,3 @@
#define FEC_ENCODING_CLASS PACKAGE_BASE_NAME "/FecEncoding"

roc_fec_encoding get_fec_encoding(JNIEnv* env, jobject jfec_encoding);

#endif /* FEC_ENCODING_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/frame_encoding.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef FRAME_ENCODING_H_
#define FRAME_ENCODING_H_
#include <jni.h>

#include "common.h"

Expand All @@ -10,5 +9,3 @@
#define FRAME_ENCODING_CLASS PACKAGE_BASE_NAME "/FrameEncoding"

roc_frame_encoding get_frame_encoding(JNIEnv* env, jobject jframe_encoding);

#endif /* FRAME_ENCODING_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/packet_encoding.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef PACKET_ENCODING_H_
#define PACKET_ENCODING_H_
#include <jni.h>

#include "common.h"

Expand All @@ -10,5 +9,3 @@
#define PACKET_ENCODING_CLASS PACKAGE_BASE_NAME "/PacketEncoding"

roc_packet_encoding get_packet_encoding(JNIEnv* env, jobject jpacket_encoding);

#endif /* PACKET_ENCODING_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/protocol.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef PROTOCOL_H_
#define PROTOCOL_H_
#include <jni.h>

#include "common.h"

Expand All @@ -12,5 +11,3 @@
roc_protocol get_protocol(JNIEnv* env, jobject jprotocol);

jobject get_protocol_enum(JNIEnv* env, roc_protocol protocol);

#endif /* PROTOCOL_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/resampler_backend.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef RESAMPLER_BACKEND_H_
#define RESAMPLER_BACKEND_H_
#include <jni.h>

#include "common.h"

Expand All @@ -10,5 +9,3 @@
#define RESAMPLER_BACKEND_CLASS PACKAGE_BASE_NAME "/ResamplerBackend"

roc_resampler_backend get_resampler_backend(JNIEnv* env, jobject jresampler_backend);

#endif /* RESAMPLER_BACKEND_H_ */
7 changes: 2 additions & 5 deletions roc_jni/src/main/headers/resampler_profile.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <jni.h>
#pragma once

#ifndef RESAMPLER_PROFILE_H_
#define RESAMPLER_PROFILE_H_
#include <jni.h>

#include "common.h"

Expand All @@ -10,5 +9,3 @@
#define RESAMPLER_PROFILE_CLASS PACKAGE_BASE_NAME "/ResamplerProfile"

roc_resampler_profile get_resampler_profile(JNIEnv* env, jobject jresampler_profile);

#endif /* RESAMPLER_PROFILE_H_ */

0 comments on commit d65d7ae

Please sign in to comment.