Add boilerplate headers comments and include guards
The initial main.cpp and libcamera.h files are missing boilerplate header comments. libcamera.h is further missing include guards. Add them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
/*
|
||||
* Copyright (C) 2018, Google Inc.
|
||||
*
|
||||
* libcamera.h - libcamera public API
|
||||
*/
|
||||
#ifndef __LIBCAMERA_LIBCAMERA_H__
|
||||
#define __LIBCAMERA_LIBCAMERA_H__
|
||||
|
||||
class libcamera
|
||||
{
|
||||
public:
|
||||
void init_lib(void);
|
||||
};
|
||||
|
||||
#endif /* __LIBCAMERA_LIBCAMERA_H__ */
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
/*
|
||||
* Copyright (C) 2018, Google Inc.
|
||||
*
|
||||
* main.cpp - libcamera main class
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <libcamera/libcamera.h>
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/*
|
||||
* Copyright (C) 2018, Google Inc.
|
||||
*
|
||||
* init.cpp - libcamera initialization test
|
||||
*/
|
||||
|
||||
#include <libcamera/libcamera.h>
|
||||
|
||||
int main(void)
|
||||
|
||||
Reference in New Issue
Block a user